Get Baidu AccessToken with username and password.
Switch branches/tags
Nothing to show
Latest commit 33051df Dec 13, 2013 @hjin-me hjin-me add readme
Failed to load latest commit information.
config done Dec 13, 2013
lib add readme Dec 13, 2013
.gitignore request code Dec 13, 2013 add readme Dec 13, 2013
package.json add readme Dec 13, 2013

Baidu Client Auth

request AccessToken of Baidu Passport in Terminal by Oauth.

在命令行里使用 Oauth 获取百度帐号的 AccessToken。

Usage / 使用方法

var auth = require('baidu-client-auth');
auth.requestToken('Your Client Id (Api Key)', 'Your Secret Key')
  .then(function(data) {
    /** @var {{expires_in, refresh_token, access_token, session_secret, session_key, scope}} data */