Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. POST https://www.googleapis.com/batch
  2. Content-Type: multipart/mixed; boundary="foo_bar"
  3. Authorization: Bearer {ACCESS_TOKEN}
  4.  
  5. --foo_bar
  6. Content-Type: application/http
  7.  
  8. GET /gmail/v1/users/me/messages/152d10540c21bd07
  9.  
  10. --foo_bar
  11. Content-Type: application/http
  12.  
  13. GET /gmail/v1/users/me/messages/152d1050d666d7ad
  14.  
  15. --foo_bar--
  16.  
  17. --batch_7Xp52oGIwpA_AAEAc7ERnGU
  18. Content-Type: application/http
  19.  
  20. HTTP/1.1 200 OK
  21. ETag: "A-DdBGA6g-wV4rIZCu5Hcm3JQpY/w2hzEg9kqXFH7AEJ-oSc-y10HNQ"
  22. Content-Type: application/json; charset=UTF-8
  23. Date: Thu, 11 Feb 2016 16:02:06 GMT
  24. Expires: Thu, 11 Feb 2016 16:02:06 GMT
  25. Cache-Control: private, max-age=0
  26. Content-Length: 2809
  27.  
  28. {
  29. "id": "152d10540c21bd07",
  30. "threadId": "152d1050d666d7ad",
  31. "labelIds": [
  32. "SENT",
  33. "INBOX",
  34. "IMPORTANT"
  35. ],
  36. "snippet": "Likewise buddy.", ...
  37. }
  38.  
  39. --batch_7Xp52oGIwpA_AAEAc7ERnGU
  40. Content-Type: application/http
  41.  
  42. HTTP/1.1 200 OK
  43. ETag: "A-DdBGA6g-wV4rIZCu5Hcm3JQpY/7v2nqQFBDmEHVvEQoboiwSidilE"
  44. Content-Type: application/json; charset=UTF-8
  45. Date: Thu, 11 Feb 2016 16:02:06 GMT
  46. Expires: Thu, 11 Feb 2016 16:02:06 GMT
  47. Cache-Control: private, max-age=0
  48. Content-Length: 1752
  49.  
  50. {
  51. "id": "152d1050d666d7ad",
  52. "threadId": "152d1050d666d7ad",
  53. "labelIds": [
  54. "SENT",
  55. "INBOX",
  56. "IMPORTANT"
  57. ],
  58. "snippet": "Nice to meet you.", ...
  59. }
  60.  
  61. --batch_7Xp52oGIwpA_AAEAc7ERnGU--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement