Wordpress and the JSON API
Upcoming SlideShare
Loading in...5
×
 

Wordpress and the JSON API

on

  • 588 views

 

Statistics

Views

Total Views
588
Views on SlideShare
588
Embed Views
0

Actions

Likes
0
Downloads
2
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Wordpress and the JSON API Wordpress and the JSON API Presentation Transcript

  • Wordpress & JSON API www.iphoneappdev.co.uk mark@iphoneappdev.co.uk jane@iphoneappdev.co.uk @JaneOrganise
  • Why use Json? Matches data model of Key/value pairs Matches data structure of Objective C/Ruby Speed Size! 1/2 the size of xml
  • Parsing the Json iOS and Android both have inbuilt parsers iOS parser returns dictionary and arrays Objective classes are dictionary and arrays Post* post = [Post new]; [post setValuesForKeysWithDictionary:jsonDictionary];
  • Json Api Plugins Json-API Not changed in last 7 months, unsupported Simple interface Can exclude unnecessary returned content Limited documentation No solution for avatars
  • Json Api Plugins JSON REST API Developed as part of GSoC 2013 Not abandoned - WIP Functionality in docs that is not available yet submit comments, get users Not a simple interface - separate call to get media for non-featured images Only 5 posts returned per page
  • Json Api Plugins Jetpack Json Api Simple interface Good documentation with examples No option to reduce response data Have to use OAuth to submit comments & posts
  • Trouble with images Different post image sources Featured image Media attached to post Source URL embedded in post Making sure images cached Cache images at size required for display, not size given
  • Trouble with Posts Embedded html native clients don’t want info (text) and presentation (html/css) just data Wordpress doesn’t separate out this :( Need to parse/strip it out
  • Trouble with plugins Not necessarily posts Parsing more complicated
  • Submitting comments and posts Need oAuth2 to authenticate - adds a layer of complexity
  • Other Free Jetpack facilities Mobile Push Notifications Stats Post by Email - publish from email Subscriptions - notifications by email Sharing - with Facebook, Twitter etc
  • Questions?