Skip to content

Commit

Permalink
Updated example code with example of passing product id and token as …
Browse files Browse the repository at this point in the history
…params.
  • Loading branch information
Matt Stump committed May 22, 2012
1 parent 82209ba commit be59943
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ Getting Started

6. Run `npm install`.

7. Set the environment variables ```SOURCENINJA_TOKEN``` and ```SOURCENINJA_PRODUCT_ID``` using the values from step 4. On Heroku, you can use the command `heroku config:add SOURCENINJA_TOKEN=XXX SOURCENINJA_PRODUCT_ID=XXX`
7. Set the environment variables ```SOURCENINJA_TOKEN``` and ```SOURCENINJA_PRODUCT_ID``` using the values from step 4. On Heroku, you can use the command `heroku config:add SOURCENINJA_TOKEN=XXX SOURCENINJA_PRODUCT_ID=XXX`. If you don't want to pass these parameters as enviroment variables you may pass them programaticly via the kapow function as demonstrated below.

8. Add the following code above your main function.


var sourceninja = require('sourceninja');
sourceninja.core.kapow();
// You can pass the product ID and token as parameters if you so desire.
// sourceninja.core.kapow("477fcfa7-765a-4b91-b6a5-2ebe4c4f9d58", "50a336d92da8ddea1ae0a6c0d06a172");


Updated Magically in Production
Expand Down

0 comments on commit be59943

Please sign in to comment.