API Documentation

Social News Office was built to be flexible, fast & easy to implement.

Download Social News Office Client Side Code Version V9.2

Download Client Code V9.2

We have put together a fully functional client side library that you can easily integrate into your existing website and theme upon. The library consists of api calls to Social News Office and ways of outputting and styling the returned data (Basically a nicely formatted blog page that displays your blog posts, categories, tags, featured news and much more...)

Feeling adventurous? Then why not build your own client / interaction with our api we would love to see your new blog design layouts.

REST API Resources

Resource Description
GET blog_posts Returns the most recent blog posts...
GET post Returns the full blog post information when url parameter of blog is passed...
GET categories Returns all category names & ids (which can be used to filter blog_posts)...
GET tags Returns 20 most recent blog tags (which can be used to filter blog_posts)...
GET featured_news Returns 15 blog titles & urls that have been tick as featured news...
GET settings Returns Users settings (meta data, usernames, google analytics & much more)...

API Error Codes

Error Code Description
Code (455) missing required parameter (error code 455)
Code (456) api key invalid (error code 456)
Code (457) api call limit exceeded (error code 457)
Code (458) no results found (error code 458)

API Rate Limit & Caching

Description

We have built in a 30 minute client side caching mechanism to increase your website performace and too minimize the number of api calls you make to Social News Office. If you would like to clear your blog's cache and make new api calls to Social News Office to get fresh data then go to http://www.yourwebsite.com/blogpage.php?empty_cache=