manifest / integrations / json-mobile
JSON Mobile Feed
A json API for WordPress article geared toward mobile
★ 2stars
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/yurivictor/json-mobile/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
JSON Mobile
Description
A WordPress plugin that creates a json response endpoint for each post. Created for the mobile applications team.
Can be used by appending ?json-mobile to any WordPress post.
Example:
http://www.washingtonpost.com/blogs/wonkblog/wp/2013/08/16/dear-dylan-the-wonkblog-advice-column-for-everything/?json-mobile
JSON fields
Default fields
id int the current post ID
uri string the path to the post
title string the current post title
authors array the current post author(s)
published string the original post published date in UTC format
lmt string the last time the post was modified in UTC format
leadimage string the designated lead image url, or first image, in the post
shareurl string the bitly link to the post for sharing
adkey string the ad key
omniture array omniture data fields
items array each paragraph broken into individual types
Default fields example
Supported item types
image
sanitizedhtml
tweet
unsupported
video
Image
Fields
type string always image
caption string the photo caption
src string the full url to the image
width int
height int
mime string the mime type of image
Example response
Sanitizedhtml
Example respo