API console for WP API

Ryan McCue e06de34f37 Parse query out correctly 12 anni fa
css e3572bbfaa initial commit of a console that works with CORS 12 anni fa
js e06de34f37 Parse query out correctly 12 anni fa
README.md 5575bcebee update directions 12 anni fa
config.sample.json de2425aa5a Make API URL configurable 12 anni fa
index.html e2464360e0 Add OAuth authentication 12 anni fa
land.html e2464360e0 Add OAuth authentication 12 anni fa

README.md

WordPress.com REST API Developer Console

An open source version of https://developer.wordpress.com/docs/api/console/ that you can run yourself. Uses implicit OAuth for authentication. The console requires a WordPress.com application to be created.

Configuring the console

Create an Application

  1. Login to WordPress.com
  2. Visit https://developer.wordpress.com/apps/
  3. Click "Create New Application"
  4. Full in your applications name and description
  5. Enter a redirect URI for your application. See http://developer.wordpress.com/docs/oauth2/ for more information
  6. Enter any domains you plan on accessing the console from in the "Javascript Origins" box
  7. Click 'Create'
  8. Note the "Client ID" and "Redirect URL" fields

Provide the console your application setting

Once you have your application credentials you need to create a configuration file for your application.

Wherever you have placed the console (the index.html, js, and css folders) create a "config.json" file with the following contents:

{
    "client_id": _CLIENT_ID_,
    "redirect_uri": "_REDIRECT_URI_"
}

You can use the config.sample.json as a base.

Replace _CLIENT_ID with the ID from above and _REDIRECTURI with the URI from above.

You should now be able to load the console and authenticate using the box in the lower right hand corner.