Return to the Developer Console Overview
Feed items related requests

List of Subscriptions

https://g2reader.com/api/1/subscriptions/list
POST
NameRequiredNotes
access_tokenyes 
ordernoPossible order = title, feed_id, default title

Success:

{
	"tick": 1373962371,
	"feeds": [
		{
			"title": "The Verge - All Posts",
			"feed_id": 1512,
			"feed_url": "http://www.theverge.com/rss/index.xml",
			"site_url": "http://www.theverge.com/",
			"folder_ids": [
				258,
				512,
				69588
			],
			"dt_last_add": 1373549150,
			"unread_cnt": 6,
			"favicon": "/fi/123/456.png",
			"sort_id": 1
		}
	],
	"folders": [
		{
			"title": "Tech",
			"folder_id": 258
		},{
			"title": "Top",
			"folder_id": 512
		},{
			"title": "Process",
			"folder_id": 69588
		}
	],
	"result": "success",
	"error": null
}

Counts of Unread for Subscriptions

https://g2reader.com/api/1/subscriptions/unread_counts
POST
NameRequiredNotes
access_tokenyes 

Success:

{
	"counts": [
		{
			"feed_id": 1512,
			"dt_last_add": 1373549150,
			"unread_cnt": 6
		}
	],
	"result": "success",
	"error": null
}

Subscribe to the new URL

https://g2reader.com/api/1/subscriptions/add_feed
POST
NameRequiredNotes
access_tokenyes 
feed_urlyesValid URL of subscribed feed

Success:

{
	"subscriptin": [
		{
			"feed_id": 1512
		}
	],
	"result": "success",
	"error": null
}

Is not possible to subscribe requested URL:

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

Unsubscribe from Feed

https://g2reader.com/api/1/subscriptions/remove_feed
POST
NameRequiredNotes
access_tokenyes 
feed_idyesValid feed ID from list of subscriptions

Success:

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

Is not possible to unsubscribe requested feed:

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

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