wpcom-oauth

Image for: wpcom-oauth
0.3.4 • Public • Published

wpcom-oauth

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

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

Installation

Image for: Installation
$ npm install wpcom-oauth

API

Image for: 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

Image for: Simple example application

See the example documentation to run the app

License

Image for: License

MIT – Copyright 2014 Automattic

Readme

Image for: Readme

Keywords

none

Package Sidebar

Image for: Package Sidebar

Install

npm i wpcom-oauth

Weekly Downloads

655

Version

0.3.4

License

MIT

Unpacked Size

12.2 kB

Total Files

17

Last publish

Collaborators