-
Notifications
You must be signed in to change notification settings - Fork 11
Setting Up in Local Mode
Maclyn Brandwein edited this page Apr 21, 2016
·
1 revision
Start off by calling init
without an Express app passed in. For example:
pavlok.init("clientId",
"clientSecret", {
"port": 3000 //Port to run the auth token accepting server on
});
Then, call login to start the login process, which should bring up a browser on your computer. This is done as follows:
pavlok.login(function(result, code){
if(result){
console.log("Code is " + code); //Auth code is code
}
});
You're ready to start sending stimuli if result
is true
!