Return to the Developer Console Overview
Feed items related requests

Authorize User

Authorize user by the provided email and password. And creates user session.
https://g2reader.com/api/1/user/authorize
POST
NameRequiredNotes
emailyes 
passwordyes 
client_keyyesThe client key for your application. Get client key here.

Success:

{
	"access_token": "3BXWu-FnHFq-wrWlu-o8nSg-B0Lgb-895",
	"result": "success",
	"error": null
}

Not authorized:

The provided email and password combination did not authenticate.
{
	"result": "error",
	"error": "Error Message"
}

Verify User Session

https://g2reader.com/api/1/user/verify_session
POST
NameRequiredNotes
access_tokenyes 

Success:

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

Is not possible to verify session:

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

User Details

https://g2reader.com/api/1/user/details
POST
NameRequiredNotes
access_tokenyes 

Success:

The most import value is tick. It is a unix timestamp date and time of the last new item. If the changes, there were something new. It should be checked periodically.
{
	"email": "user@sample-email.com",
	"fullname": "George Specimen",
	"folder_count": 6,
	"subscription_count": 62,
	"tz": "Europe/Prague",
	"lng": "en",
	"tz_shift": 3600,
	"result": "success",
	"error": null,
	"tick": 1373962371
}

Is not possible to get user details:

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

Logout User

https://g2reader.com/api/1/user/logout
POST
NameRequiredNotes
access_tokenyes 

Success:

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

Is not possible to process logout:

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

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