-
Notifications
You must be signed in to change notification settings - Fork 1
class_APIResponse
Tom edited this page Apr 1, 2018
·
2 revisions
Response from all APIRequests
APIResponse(response)
-
response(requests.response) - raw response from requests get request
-
headers(object/dict) - Response headers -
json(object/dict) - Response data -
status(integer) - Response status code -
type(string) - Type of response one of NONE_TYPE, ERROR_TYPE, STATS_TYPE, IMAGE_TYPE or SHOP_TYPE -
data(ShopResponse, StatResponse or ImageResponse) - Formatted response data only set iftypeis STATS_TYPE, IMAGE_TYPE or SHOP_TYPE -
error(string) - Response error only set iftypeis ERROR_TYPE