forked from tweepy/tweepy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explicitly return api code when parsing error
- Loading branch information
1 parent
89d8197
commit 7f322d7
Showing
5 changed files
with
322 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,287 @@ | ||
{ | ||
"version": 1, | ||
"interactions": [ | ||
{ | ||
"request": { | ||
"method": "GET", | ||
"uri": "https://api.twitter.com:443/1.1/direct_messages.json", | ||
"headers": { | ||
"Host": [ | ||
"api.twitter.com" | ||
] | ||
}, | ||
"body": null | ||
}, | ||
"response": { | ||
"status": { | ||
"message": "Bad Request", | ||
"code": 400 | ||
}, | ||
"headers": { | ||
"x-response-time": [ | ||
"6" | ||
], | ||
"content-type": [ | ||
"application/json; charset=utf-8" | ||
], | ||
"server": [ | ||
"tsa_b" | ||
], | ||
"strict-transport-security": [ | ||
"max-age=631138519" | ||
], | ||
"set-cookie": [ | ||
"guest_id=v1%3A144655290597218733; Domain=.twitter.com; Path=/; Expires=Thu, 02-Nov-2017 12:15:05 UTC" | ||
], | ||
"date": [ | ||
"Tue, 03 Nov 2015 12:15:05 GMT" | ||
], | ||
"x-connection-hash": [ | ||
"bbad9c628533f023920a78c282b82a2e" | ||
], | ||
"content-length": [ | ||
"62" | ||
] | ||
}, | ||
"body": { | ||
"string": "{\"errors\":[{\"code\":215,\"message\":\"Bad Authentication data.\"}]}" | ||
} | ||
} | ||
}, | ||
{ | ||
"request": { | ||
"method": "GET", | ||
"uri": "https://api.twitter.com:443/1.1/direct_messages.json", | ||
"headers": { | ||
"Cookie": [ | ||
"guest_id=v1%3A144655290597218733" | ||
], | ||
"Host": [ | ||
"api.twitter.com" | ||
] | ||
}, | ||
"body": null | ||
}, | ||
"response": { | ||
"status": { | ||
"message": "Bad Request", | ||
"code": 400 | ||
}, | ||
"headers": { | ||
"x-response-time": [ | ||
"5" | ||
], | ||
"content-type": [ | ||
"application/json; charset=utf-8" | ||
], | ||
"server": [ | ||
"tsa_b" | ||
], | ||
"strict-transport-security": [ | ||
"max-age=631138519" | ||
], | ||
"date": [ | ||
"Tue, 03 Nov 2015 12:15:11 GMT" | ||
], | ||
"x-connection-hash": [ | ||
"bbad9c628533f023920a78c282b82a2e" | ||
], | ||
"content-length": [ | ||
"62" | ||
] | ||
}, | ||
"body": { | ||
"string": "{\"errors\":[{\"code\":215,\"message\":\"Bad Authentication data.\"}]}" | ||
} | ||
} | ||
}, | ||
{ | ||
"request": { | ||
"method": "GET", | ||
"uri": "https://api.twitter.com:443/1.1/direct_messages.json", | ||
"headers": { | ||
"Cookie": [ | ||
"guest_id=v1%3A144655290597218733" | ||
], | ||
"Host": [ | ||
"api.twitter.com" | ||
] | ||
}, | ||
"body": null | ||
}, | ||
"response": { | ||
"status": { | ||
"message": "Bad Request", | ||
"code": 400 | ||
}, | ||
"headers": { | ||
"x-response-time": [ | ||
"3" | ||
], | ||
"content-type": [ | ||
"application/json; charset=utf-8" | ||
], | ||
"server": [ | ||
"tsa_b" | ||
], | ||
"strict-transport-security": [ | ||
"max-age=631138519" | ||
], | ||
"date": [ | ||
"Tue, 03 Nov 2015 12:15:16 GMT" | ||
], | ||
"x-connection-hash": [ | ||
"bbad9c628533f023920a78c282b82a2e" | ||
], | ||
"content-length": [ | ||
"62" | ||
] | ||
}, | ||
"body": { | ||
"string": "{\"errors\":[{\"code\":215,\"message\":\"Bad Authentication data.\"}]}" | ||
} | ||
} | ||
}, | ||
{ | ||
"request": { | ||
"method": "GET", | ||
"uri": "https://api.twitter.com:443/1.1/direct_messages.json", | ||
"headers": { | ||
"Host": [ | ||
"api.twitter.com" | ||
] | ||
}, | ||
"body": null | ||
}, | ||
"response": { | ||
"status": { | ||
"message": "Bad Request", | ||
"code": 400 | ||
}, | ||
"headers": { | ||
"x-response-time": [ | ||
"4" | ||
], | ||
"content-type": [ | ||
"application/json; charset=utf-8" | ||
], | ||
"server": [ | ||
"tsa_b" | ||
], | ||
"strict-transport-security": [ | ||
"max-age=631138519" | ||
], | ||
"set-cookie": [ | ||
"guest_id=v1%3A144655293331152269; Domain=.twitter.com; Path=/; Expires=Thu, 02-Nov-2017 12:15:33 UTC" | ||
], | ||
"date": [ | ||
"Tue, 03 Nov 2015 12:15:33 GMT" | ||
], | ||
"x-connection-hash": [ | ||
"f3384743aac99980194e77031a6b9d66" | ||
], | ||
"content-length": [ | ||
"62" | ||
] | ||
}, | ||
"body": { | ||
"string": "{\"errors\":[{\"code\":215,\"message\":\"Bad Authentication data.\"}]}" | ||
} | ||
} | ||
}, | ||
{ | ||
"request": { | ||
"method": "GET", | ||
"uri": "https://api.twitter.com:443/1.1/direct_messages.json", | ||
"headers": { | ||
"Cookie": [ | ||
"guest_id=v1%3A144655293331152269" | ||
], | ||
"Host": [ | ||
"api.twitter.com" | ||
] | ||
}, | ||
"body": null | ||
}, | ||
"response": { | ||
"status": { | ||
"message": "Bad Request", | ||
"code": 400 | ||
}, | ||
"headers": { | ||
"x-response-time": [ | ||
"4" | ||
], | ||
"content-type": [ | ||
"application/json; charset=utf-8" | ||
], | ||
"server": [ | ||
"tsa_b" | ||
], | ||
"strict-transport-security": [ | ||
"max-age=631138519" | ||
], | ||
"date": [ | ||
"Tue, 03 Nov 2015 12:15:38 GMT" | ||
], | ||
"x-connection-hash": [ | ||
"f3384743aac99980194e77031a6b9d66" | ||
], | ||
"content-length": [ | ||
"62" | ||
] | ||
}, | ||
"body": { | ||
"string": "{\"errors\":[{\"code\":215,\"message\":\"Bad Authentication data.\"}]}" | ||
} | ||
} | ||
}, | ||
{ | ||
"request": { | ||
"method": "GET", | ||
"uri": "https://api.twitter.com:443/1.1/direct_messages.json", | ||
"headers": { | ||
"Cookie": [ | ||
"guest_id=v1%3A144655293331152269" | ||
], | ||
"Host": [ | ||
"api.twitter.com" | ||
] | ||
}, | ||
"body": null | ||
}, | ||
"response": { | ||
"status": { | ||
"message": "Bad Request", | ||
"code": 400 | ||
}, | ||
"headers": { | ||
"x-response-time": [ | ||
"6" | ||
], | ||
"content-type": [ | ||
"application/json; charset=utf-8" | ||
], | ||
"server": [ | ||
"tsa_b" | ||
], | ||
"strict-transport-security": [ | ||
"max-age=631138519" | ||
], | ||
"date": [ | ||
"Tue, 03 Nov 2015 12:15:43 GMT" | ||
], | ||
"x-connection-hash": [ | ||
"f3384743aac99980194e77031a6b9d66" | ||
], | ||
"content-length": [ | ||
"62" | ||
] | ||
}, | ||
"body": { | ||
"string": "{\"errors\":[{\"code\":215,\"message\":\"Bad Authentication data.\"}]}" | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters