Skip to content

Automattic/wpcom-connect-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordPress.com Connect Examples

Code Examples for Implementing WordPress.com Connect

Instructions

These examples require minor changes to get working. The full instructions for getting a PHP app running are on developer.wordpress.com.

These instructions assume you know how to run a website for your chosen framework: PHP (start a webserver), Node.js (run npm install), etc.

  1. Log in to WordPress.com
  2. Create a new WPCC application: developer.wordpress.com/apps/. You can change these settings at any time.
  3. Adjust the following values (in the proper config file) to match the ones in your WPCC application:
    • Client ID
    • Client Secret
    • Login URL
    • Redirect URL
  4. Start your server and log in.
  5. Profit!

Storing and using the access token is an exercise left for the developer.

Current Demos

Demo Language Framework Description Author
/php PHP N/A Auth via wp.com and token display Automattic
/node-express Javascript Node.js Express Auth via wp.com and token display Automattic
/python-flask Python Flask Auth via wp.com and token display Automattic

Where is the demo for Framework X?

If you implement a framework we don't have, we'd love to include it in this project. Just submit a pull request.

About

Code Examples for Implementing WordPress.com Connect

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •