0.0.10 • Published 10 years ago

adwords-auth v0.0.10

Weekly downloads
218
License
-
Repository
-
Last release
10 years ago

adwords-auth

Module to obtaing access and refresh tokens to use with Google AdWords API.

###Usage First get module via npm

$ npm install adwords-auth

Get both the refresh and the access token (redirectUri could be e.g. http://localhost:3000):

var auth = require('adwords-auth');
auth.getTokens(clientId, clientSecret, redirectUri, function(err, tokens) {
    if (err) throw err;
    console.log(tokens);
});

Get a new access token

var auth = require('adwords-auth');
auth.refresh(clientId, clientSecret, refreshToken, function(err, token) {
    if (err) throw err;
    console.log(token);
});

###License

MIT

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago