Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var api_key = {
- authType: 'password',
- clientId: 'foo',
- clientSecret: 'foo'
- };
- var podio_api = require('../node_modules/podio-js/lib/podio-js');
- var podio = new podio_api (api_key);
- var username = 'foo';
- var password ='foo';
- var callback = function (err, responsedata) {
- if (err) throw (err);
- console.log (responsedata);
- };
- podio.authenticateWithCredentials (username, password, callback);
- { access_token: 'foo',
- expires_in: 28800,
- token_type: 'bearer',
- scope: 'global:all',
- ref: { type: 'user', id: 999999 },
- refresh_token: 'foo' }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement