wpcom-unpublished
v1.1.1
Published
WPCOM extension for unpublished endpoints of the WordPress REST-API
Downloads
7
Readme
wpcom-unpublished
WPCOM extension that uses unpublished endpoints of the WordPress REST-API.
How to use
// Require modules
var wpcomUnpublished = require( 'wpcom-unpublished' );
var proxy = require( 'wpcom-proxy-request' );
// Create wpcom instance
var wpcom = wpcomUnpublished( proxy );
// Get settings for the current user
wpcom
.me()
.settings()
.get( function( err, data ) {
// user settings data object
} );
Run testing app
- Install npm dependencies
make install
- Add
127.0.0.1 calypso.localhost
to your local hosts file. - Execute
make run-test-app
from the root directory of the repository. - Open
calypso.localhost:3000
in your browser.
Links
License
wpcom-unpublished is licensed under GNU General Public License v2 (or later).