Advertisement
Guest User

Untitled

a guest
Feb 26th, 2018
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. POST
  2. orinoco/api/v1/send
  3. {
  4. "token": "123123thisisyourexampletoken123123",
  5. "from": "examplefrom@exampledomain.com",
  6. "subject": "this is not spam at all",
  7. "to": [
  8. "firstdestiny@thisdomain.com",
  9. "seconddestiny@thatdomain.com"
  10. ],
  11. "body": {
  12. "plain": "hi ${CustName} this the example e-mail... ${TotalPending} .. ${DueDays}",
  13. "html": "<div> hi ${CustName} this the example e-mail... ${TotalPending} .. ${DueDays} </div>"
  14. },
  15. "data": [
  16. {
  17. "CustName": "First This",
  18. "TotalPending": "12,345,678.90",
  19. "DueDays": "40"
  20. },
  21. {
  22. "CustName": "Second That",
  23. "TotalPending": "1,678.00",
  24. "DueDays": "80"
  25. }
  26. ],
  27. "callbackurl": "http://yoursite.com/some/way/to/call/you/back/<123messageid123>"
  28. }
  29.  
  30. Response/ POST callback:
  31. {
  32. "email": "123emailId123",
  33. "status": “accepted/rejected”,
  34. "reason": "all OK! ty :) / UNAUTHORIZED GTFO"
  35. }
  36.  
  37.  
  38. ##############################
  39.  
  40. GET
  41. orinoco/api/v1/check
  42.  
  43. {
  44. "token": "123123thisisyourexampletoken123123",
  45. "email": "123emailId123"
  46. }
  47.  
  48.  
  49. RESPONSE:
  50.  
  51. {
  52. "email": "123emailId123",
  53. "status": “queued / delivered / failed”,
  54. "reason": "Queued / Waiting for send / UNAUTHORIZED GTFO"
  55. }
  56.  
  57.  
  58. #######################################
  59.  
  60. GET
  61. orinoco/api/v1/tracking
  62.  
  63. {
  64. "token": "123123thisisyourexampletoken123123",
  65. "email": "123emailId123"
  66. }
  67.  
  68. RESPONSE:
  69.  
  70. {
  71. "id": "123emailId123",
  72. "from": "sender@example.com",
  73. "subject": "example subject",
  74. "tos": [
  75. "recipient.email@example.com",
  76. "recipient2.email2@example2.com"
  77. ],
  78. "tracking": [
  79. {
  80. "opens": 22
  81. },
  82. {
  83. "opens": 0
  84. }
  85. ],
  86. "status": [
  87. {
  88. "reason": "all ok! :)",
  89. "status": "opened"
  90. },
  91. {
  92. "reason": "cant reach domain example2.com",
  93. "status": "failed"
  94. }
  95. ]
  96. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement