hdu-oauth2-client
v1.2.3
Published
OAuth2 client for Hangzhou Dianzi University API
Downloads
6
Readme
hdu-oauth2-client
OAuth2 client for Hangzhou Dianzi University.
Usage
import {OAuthClient} from 'hdu-oauth2-client';
const client = new OAuthClient({ id, secret, version });
client.get(resourcePath, (err, response) => {
// yay, response received!
});
expressApp.get('/proxy_prefix', client.proxy('/proxy_prefix', (err) => {
// handle proxy error
}));