Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. {
  2. "ContactKey": "ID601",
  3. "EventDefinitionKey":"AcmeBank.AccountAccessed",
  4. "EstablishContactKey": true,
  5. "Data": {
  6. "accountNumber":"123456",
  7. "patronName":"John Smith"
  8. }
  9. }
  10.  
  11. %%[
  12. Var @body, @callstatus, @response
  13. /* add your desired request-body to this variable */
  14. Set @body = '{"ContactKey": "YourKey"}'
  15.  
  16. HTTPPost2("https://auth.exacttargetapis.com/interaction/v1/events", "application/json", @body, True, @callstatus, @response)
  17.  
  18. IF @callstatus == 200 THEN
  19. ]%%
  20.  
  21. <p>Success!</p>
  22.  
  23. %%[
  24. ENDIF
  25. ]%%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement