All Projects → Automattic → node-wpcom-oauth

Automattic / node-wpcom-oauth

Licence: MIT License
WordPress.com OAuth2 authorization module for Node.js

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

npm version

wpcom-oauth

WordPress.com OAuth2 server-side authorization module for Node.js.

The client-side counterpart to this module is wpcom-oauth-cors.

Installation

$ npm install wpcom-oauth

API

WPOAuth#urlToConnect(resource)

Return the url that points to first step for get the access token.

WPOAuth#code(code)

Set the code to request the access token.

WPOAuth#requestAccessToken(fn)

Start the OAuth2 request to WordPress.com and execute the callback function when it's done.

Simple example application

See the example documentation to run the app

License

MIT – Copyright 2014 Automattic

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].