<commit_before># slice-node
Slice's native node.js SDK

--------

##Usage

Install the module by calling:

`npm install slice-node`

To create a new instance of the Slice object call:

` var slice = new Slice('OAuth', YOUR_CLIENT_ID, YOUR_CLIENT_SECRET, YOUR_CALLBACK_URL);`

To get the authentication URL:

` var url = slice.getAuthUrl()`

Redirection must be handled manually.  It is the developer's responsibility to ensure that the user is redirected to the Slice login page. 

After the callback, you may obtain the access token for a user by calling:

`var token = slice.authenticateWithAuthCode(code);`

Where `code` is the code passed via URL parameter after the callback.

Once the token is obtained, instantiate the Request object by calling:

`var request = new Slice.MakeRequest(token)`

Once the request object is instantiated, call the following function:

`request.users('/self', function(error, response, body){
      console.log(body);
    }
    )`

This SDK does not replace the use of server frameworks like [Express](http://expressjs.com).  It is meant to complement them

<commit_msg>more docs changes<commit_after># slice-node
Slice's native node.js SDK

--------

##Usage

Install the module by calling:

`npm install slice-node`

To create a new instance of the Slice object call:

` var slice = new Slice('OAuth', YOUR_CLIENT_ID, YOUR_CLIENT_SECRET, YOUR_CALLBACK_URL);`

To get the authentication URL:

` var url = slice.getAuthUrl()`

Redirection must be handled manually.  It is the developer's responsibility to ensure that the user is redirected to the Slice login page. 

After the callback, you may obtain the access token for a user by calling:

`var token = slice.authenticateWithAuthCode(code);`

Where `code` is the code passed via URL parameter after the callback.

Once the token is obtained, instantiate the Request object by calling:

`var request = new Slice.MakeRequest(token)`

Once the request object is instantiated, call the following function:

`request.users('/self', function(error, response, body){
      console.log(body);
    }
    )`

This completes the Hello World as described on [our site](https://developer.slice.com/docs/hello)!  Congrats, you're now ready to make requests!

This SDK does not replace the use of server frameworks like [Express](http://expressjs.com).  It is meant to complement them.  

Email [<EMAIL>](mailto:<EMAIL>) with any questions!


{'fraction_non_alphanumeric': 0.08774834437086093, 'fraction_numerical': 0.0, 'mean_word_length': 4.35920177383592, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3240286', 'n_tokens_mistral': 705, 'n_tokens_neox': 679, 'n_words': 302}