Creating a basic WordPress Podio REST plugin

Podio is one popular cloud based project management system under Citrix. It is a web based platform that can be used in team collaboration, online forms, report generator, contact list and project management to name a few.

You can integrate your web application to it using its open Podio API so you can automatically send your data from your website like visitor count, sales, form submission, etc.

Since the introduction of WordPress version 4.4, it is now possible to to create a RESTful backend without using a 3rd party plugin, that gives our favorite blogging platform to be more of a Web Application framework.

 

These are my notes in create a basic WP Podio App Plugin:

  1. Make sure Curl and OpenSSL is enabled, you can use this PHP code:
  2. Generate your Podio APP keys from here: https://developers.podio.com/api-key then take note your Client ID and Client Secret. You will need them later
  3. In your Podio App, go to your developer settings which you can find here: podio_app_developer_settings
  4. Take note of your App ID and Token from the developer settings: App_ID_And_Token_Id
  5. Create your basic plugin by including the Podio PHP library: https://github.com/podio/podio-php
  6. Use the CLIENTID, CLIENT SECRET, APPID and TOKEN that you got from the previous steps then add this to you plugin code :
  7. Verify your connection by going back to the Podio Developer setting, in our code, we have generated the rest endpoint under this url http://example.com/wp-json/v1/connect so you have to add a hook on that endpoint from here:podio
  8. If you see that your hook became active, it means your REST api creation is successful
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s