0.3.4 • Published 6 years ago

wpcom-oauth v0.3.4

Weekly downloads
74
License
MIT
Repository
github
Last release
6 years ago

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

0.3.4

6 years ago

0.3.3

9 years ago

0.0.5

9 years ago

0.0.1

9 years ago

0.3.2

10 years ago

0.2.0

10 years ago

0.1.1

10 years ago

0.0.3

10 years ago