Response from server - www-getstorify-com/getstorify-offers-php-sdk GitHub Wiki
Success response
On success the GS (GetStorify) server will send the following response.
{
"status": "success",
"code": 200,
"success": SUCCESS_DATA
}
Error response
On error the GS server will send the following response.
{
"status": "error",
"code": ERROR_CODE,
"message": ERROR_MESSAGE,
"error": ERROR_DATA
}
Success: Access token
{
"status": "success",
"code": 200,
"success": {
"appid": "123",
"userid": "gs123",
"domain": "https://example.com",
"accesstoken": "abcdef1234567890fedcba"
}
}
Error: No match found
If you are trying to fetch data that does not exists then you will get the following error.
{
"status": "error",
"code": 60002,
"message": "No match found",
"error": "No match found"
}
Note! If you request for a story by id that does not exists then you will get the above error.
Error: Access Token expired
If access token is expired then you will get the following error.
{
"status": "error",
"code": 403,
"message": "Access Token expired",
"error": "Forbidden"
}