Advertisement
Guest User

Untitled

a guest
Sep 30th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 3.92 KB | None | 0 0
  1.                                                         //Template Cadastro
  2. //Envio
  3. {
  4.    "content":{
  5.       "templateId":1383050
  6.    },
  7.    "updateProfile":true,
  8.    "recipients":[
  9.       {
  10.          "email":"diego.cassola@br.acaonet.com",
  11.          "id":"diego.cassola@br.acaonet.com",
  12.          "profile":{
  13.             "userAttrs":[
  14.                {
  15.                   "firstName":"Julia"
  16.                },
  17.                {
  18.                   "APIVAR001":"https://goo.gl/yIYpzG"
  19.                },
  20.                {
  21.                   "APIVAR006":"Faça a sua lista de convidados com o Chá de Bebê Huggies. =D"
  22.                }
  23.             ]
  24.          }
  25.       }
  26.    ]
  27. }
  28.  
  29.  
  30. //Resposta
  31.  
  32. {
  33.   "state": "accepted",
  34.   "message": "Send email request queued successfully.",
  35.   "request": {
  36.     "id": "cff1fb6f-564b-4d58-a651-ff3cbb0c7ef1",
  37.     "user": "kccintllao",
  38.     "time": "2016-09-30T16:53:38.000Z",
  39.     "uri": "https://api.test.yesmail.com/v2/emails/send"
  40.   },
  41.   "response": null,
  42.   "id": "57ee98905a4b858d0b01b884",
  43.   "events": [
  44.     {
  45.       "state": "accepted",
  46.       "message": "Send email request queued successfully.",
  47.       "time": "2016-09-30T16:53:36.917Z"
  48.     }
  49.   ],
  50.   "lastUpdate": "2016-09-30T16:53:36.917Z"
  51. }
  52.  
  53.  
  54. //Get Ticket
  55. {
  56.   "state": "failed",
  57.   "message": "master id 1383050 message JavaScript Error: Internal Error: (Line 0) Cannot find the attribute: Generic1",
  58.   "request": {
  59.     "id": "cff1fb6f-564b-4d58-a651-ff3cbb0c7ef1",
  60.     "user": "kccintllao",
  61.     "time": "2016-09-30T16:53:38.000Z",
  62.     "uri": "https://api.test.yesmail.com/v2/emails/send"
  63.   },
  64.   "events": [
  65.     {
  66.       "state": "accepted",
  67.       "message": "Send email request queued successfully.",
  68.       "time": "2016-09-30T16:53:36.917Z"
  69.     },
  70.     {
  71.       "state": "failed",
  72.       "message": "master id 1383050 message JavaScript Error: Internal Error: (Line 0) Cannot find the attribute: Generic1",
  73.       "time": "2016-09-30T16:52:54.690Z"
  74.     }
  75.   ],
  76.   "lastUpdate": "2016-09-30T16:52:54.690Z",
  77.   "id": "57ee98905a4b858d0b01b884"
  78. }
  79.  
  80.  
  81.                                                         //Template Recuperar Senha
  82. //Envio
  83. {
  84.    "content":{
  85.       "templateId":1382990
  86.    },
  87.    "updateProfile":true,
  88.    "recipients":[
  89.       {
  90.          "email":"diego.cassola@br.acaonet.com",
  91.          "id":"diego.cassola@br.acaonet.com",
  92.          "profile":{
  93.             "userAttrs":[
  94.                {
  95.                   "firstName":"Diego"
  96.                },
  97.                {
  98.                   "APIVAR011":"https://goo.gl/alaUQj"
  99.                }
  100.             ]
  101.          }
  102.       }
  103.    ]
  104. }
  105.  
  106. //Resposta
  107. {
  108.   "state": "accepted",
  109.   "message": "Send email request queued successfully.",
  110.   "request": {
  111.     "id": "ed3cb29d-4027-4207-b9b3-9885b32ebffc",
  112.     "user": "kccintllao",
  113.     "time": "2016-09-30T16:55:52.000Z",
  114.     "uri": "https://api.test.yesmail.com/v2/emails/send"
  115.   },
  116.   "response": null,
  117.   "id": "57ee99165a4b858d0b01b889",
  118.   "events": [
  119.     {
  120.       "state": "accepted",
  121.       "message": "Send email request queued successfully.",
  122.       "time": "2016-09-30T16:55:50.067Z"
  123.     }
  124.   ],
  125.   "lastUpdate": "2016-09-30T16:55:50.067Z"
  126. }
  127.  
  128. //GEt Ticket
  129. {
  130.   "state": "completed",
  131.   "message": "Send email request completed.",
  132.   "request": {
  133.     "id": "ed3cb29d-4027-4207-b9b3-9885b32ebffc",
  134.     "user": "kccintllao",
  135.     "time": "2016-09-30T16:55:52.000Z",
  136.     "uri": "https://api.test.yesmail.com/v2/emails/send"
  137.   },
  138.   "events": [
  139.     {
  140.       "state": "accepted",
  141.       "message": "Send email request queued successfully.",
  142.       "time": "2016-09-30T16:55:50.067Z"
  143.     },
  144.     {
  145.       "state": "completed",
  146.       "message": "Send email request completed.",
  147.       "time": "2016-09-30T16:55:07.781Z"
  148.     }
  149.   ],
  150.   "lastUpdate": "2016-09-30T16:55:07.781Z",
  151.   "id": "57ee99165a4b858d0b01b889",
  152.   "response": {
  153.     "data": {
  154.       "messageId": "889386802123",
  155.       "sentTime": "2016-09-30T16:55:52.703Z"
  156.     }
  157.   }
  158. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement