0.0.4 • Published 11 years ago
ioauth v0.0.4
ioauth
Implicit Open Auth client-side module for WordPress.com
> npm install ioauthHow to use
var iOAuth = require('ioauth')('<client-id>');
// get auth object
iOAuth.get(function(auth){
// your token is here auth.access_token!
});
// clean stored token
iOAuth.clean();
// get stored token
var auth = iOAuth.token();API
IOAuth(client_id, params)
Create a IOAuth instance with given client_id (String) and optional params object
params:
redirect_uriresponse_typescope
Test
- Compile testing js file
> make testGo to
test/folderRun web server (using
servefor instance)Open
index.htmlwith a browser