Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

wp-oauth

0.0.3 • Public • Published

Wordpress OAuth authentication

node.js module to connect your application with wordpress.com

API

WPOAuth#urlToConnect(resource)

return a string with the url that points to first step for get the oauth connection.

WPOAuth#setCode(code)

Set the needed code to request the access token.

WPOAuth#requestAccessToken(fn)

Start the OAuth2 request to wordpress.com. The method execute callback function when it's done.

Example

Into example/ folder download the npm dependencies:

$ npm install

... and then run the application

$ node index.js

License

MIT – Copyright 2014 Automattic

Keywords

none

install

npm i wp-oauth

Downloadsweekly downloads

6

version

0.0.3

license

none

last publish

collaborators

  • avatar
Report a vulnerability