Return to the Developer Console Overview
Feed items related requests

Retrieve Feed Items

https://g2reader.com/api/1/items/list
POST
NameRequiredNotes
access_tokenyes 
rangeyesPossible range = all, feed, folder, stars, unread, trending, search
rel_idnoRelated id of feed or folder (depend on range)
querynouse query only for range = search
created_sincenoTimestamp after/before (depend on order) which to return items
offsetnoNumber of items to skip before returning results, default 0
limitnoMaximum number of items to return, default 20, max 100
ordernoOrder of items n for newest first or o for oldest first, default is n

Success:

{
	"count": 2,
	"items": [
		{
			"item_id": "10006968003885378266",
			"published_at": 1373640498,
			"created_at": 1373640526,
			"url": "http://www.mysqlperformanceblog.com/2013/07/12/innotop-1-9-1-released/",
			"title": "innotop 1.9.1 released",
			"body": "...",
			"starred": true,
			"read": false,
			"author": "",
			"feed_id": 6968,
			"feed_title": "MySQL Performance Blog"
		},{
			"item_id": "10006972002544696040",
			"published_at": 1372845240,
			"created_at": 1372845562,
			"url": "http://www.jonathanlevin.co.uk/2013/07/using-mysql-to-build-big-data.html/",
			"title": "Using MySQL to build Big Data Application",
			"body": "...",
			"starred": false,
			"read": true,
			"author": "",
			"feed_id": 6972,
			"feed_title": "Planet MySQL"
		}
	],
	"result": "success",
	"error": null
}

Is not possible to get requested list:

{
	"result": "error",
	"error": "Error Message"
}

Return the a specific collection of items by ID

https://g2reader.com/api/1/items/get
POST
NameRequiredNotes
access_tokenyes 
item_idsyesComma separated list of item_id values. For Example, "10006968003885378266,10006972002544696040"
ordernoOrder of items n for newest first or o for oldest first, default is n

Success:

{
	"count": 2,
	"items": [
		{
			"item_id": "10006968003885378266",
			"published_at": 1373640498,
			"created_at": 1373640526,
			"url": "http://www.mysqlperformanceblog.com/2013/07/12/innotop-1-9-1-released/",
			"title": "innotop 1.9.1 released",
			"body": "...",
			"starred": true,
			"read": false,
			"author": "",
			"feed_id": 6968,
			"feed_title": "MySQL Performance Blog"
		},{
			"item_id": "10006972002544696040",
			"published_at": 1372845240,
			"created_at": 1372845562,
			"url": "http://www.jonathanlevin.co.uk/2013/07/using-mysql-to-build-big-data.html/",
			"title": "Using MySQL to build Big Data Application",
			"body": "...",
			"starred": false,
			"read": true,
			"author": "",
			"feed_id": 6972,
			"feed_title": "Planet MySQL"
		}
	],
	"result": "success",
	"error": null
}

Is not possible to get requested list:

{
	"result": "error",
	"error": "Error Message"
}

Sets or cleans "Star" attribute for selected item IDs

https://g2reader.com/api/1/items/stars
POST
NameRequiredNotes
access_tokenyes 
actionyesPossible action = set, clean
item_idsyesComma separated list of item_id values. For Example, "10006968003885378266,10006972002544696040"

Success:

{
	"affected": 2,
	"result": "success",
	"error": null
}

Is not possible to update attribute:

{
	"result": "error",
	"error": "Error Message"
}

Sets or cleans "Read" attribute for selected range

https://g2reader.com/api/1/items/reads
POST
NameRequiredNotes
access_tokenyes 
rangeyesPossible range = items, all, feed, folder
actionyesPossible action = read, unread ( set item as unread is available only for items)
item_idsnoComma separated list of item_id values. For Example, "10006968003885378266,10006972002544696040"
rel_idnoRelated id of feed or folder (depend on range)

Success:

{
	"affected": 2,
	"result": "success",
	"error": null
}

Is not possible to update attribute:

{
	"result": "error",
	"error": "Error Message"
}

Copyright © 2018 – G2Reader.com – v.4.0.4 – DevelopersTopPrivacyAbout