Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Get Baidu AccessToken with username and password.
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
config
lib
.gitignore
README.md
package.json

README.md

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 */
    console.log(data);
  });
Something went wrong with that request. Please try again.