Skip to content

neolution/wp-parse-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordPress Parse Api

Join the chat at https://gitter.im/norman784/wp-parse-api

Bridge between Parse api and WordPress

Description

The goal of this plugin its to replicate all your posts to Parse so you can easily develop mobile apps, because I find very useful their SDK and help us to develop apps faster without worring about the security or if someone else can read data from our blog and use it.

Features

  • Post object saved (create/update) to Parse
  • Push notifications when new post published
  • Turn on/off push notifications when new post published
  • Sync old post to Parse
  • Plugin can be updated from github, thanks to WordPress Github Plugin Updater

Installation

  1. Create your account on Parse
  2. Create an app
  3. Create an class in the data browser with those fields:
    • categories (Array)
    • content (String)
    • date (String)
    • guid (String)
    • photos (Array)
    • thumbnail (Object)
    • title (String)
    • videos (Array)
    • wpId (Number)
  4. Upload wp-parse-api to the /wp-content/plugins/ directory
  5. Activate the plugin through the 'Plugins' menu in WordPress
  6. Go to Settings -> Parse Api
  7. Fill the form with the data from your Parse.com app dashboard
  8. At this point it must be ready to use it

Frequently Asked Questions

Why Parse.com?

Because I find there a well documented SDK's for the most popular mobile platforms.

How it works?

Configure the plugin under Settings -> Parse Api as describe in the instalation. Every time you publish or save a published post it will create/update their respective row on Parse

Then use the SDK of your prefered platform and start coding.

TODO

  • Better way to handle synchronization (don't research so much if wp has a build in cronjob)
  • Prepare for submit into the wordpress plugin repository
  • Built a log event registry and visualization
  • Add test case files

Changelog

0.5.0

  • Added date internationalization support (English, Español)
  • Bug fixes

0.4.1

  • Bug fixes

0.4

  • Added support for youtube videos
  • Added some comments on the source code

0.3.1

  • Fixed bug that send push notification if category is null or an empty string, seems that my previous fixes not work :(

0.3.0

  • Added an option to turn on/off push notifications
  • Added github plugin updater

0.2.9

  • Fix issue if no push certificate or valid push certificate was configured (thanks to raymondmuller)

0.2.8

  • Small improvement, if categories are empty no push notification will be send

0.2.7

  • Fix push notifications, now it get the categories from the post

0.2.6

  • Fix to remove the bbcode and their content

0.2.5

  • Fix sync, now update/insert works
  • Added log helper

0.2.4

  • Fix sync, now update/insert works
  • Fix img src isolation
  • Changed limit per page from 20 to 10

0.2.3

  • Fix sync, now the pagination works fine
  • Now refresh via javascript, instead of php wp_rediect to prevent browser error "too many redirections"
  • Changed sort tag php with full php tag

0.2.2

  • Added guid and photos fields
  • Embed photos in the content field will be extracted and pushed on photos field
  • Strip all html tags from the intro content
  • Strip certain html tags from the extended content

0.2.1

  • Fix: now sync all posts instead of the first 5

0.2

  • Add a fix for the 3rd party class parseRestClient to get to work in php < 5.3
  • Readme: changed thumbnail type to Object
  • Fixed thumbnails tag img was returned before the fix, now returns the url
  • In wp-parse-api.php changed functions to class

0.1 Initial Commit

About

Contributors: normanpaniagua

Tags: parse.com, api

Requires at least: 3.0.1 (not tested)

Tested up to: 3.5

License: GPLv2 or later

License URI: http://www.gnu.org/licenses/gpl-2.0.html

About

Bridge between parse.com api and wordpress

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%