Guest User

Untitled

a guest
Apr 27th, 2018
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. <?php
  2. $request = new Marketing Cloud_CreateRequest();$opts = new Marketing Cloud_CreateOptions();
  3. $opts->RequestType = Marketing Cloud_RequestType::Asynchronous;
  4. $opts->SendResponseTo = array();
  5. $ar = new Marketing Cloud_AsyncResponse();
  6. $ar->ConversationID = "firsttest";
  7. $ar->RespondWhen = Marketing Cloud_RespondWhen::OnCallComplete;
  8. $ar->ResponseType = Marketing Cloud_AsyncResponseType::email;
  9. $ar->ResponseAddress = "responses@example.com";
  10. $ar->IncludeResults = true;
  11. $ar->IncludeObjects = true;
  12. $ar->OnlyIncludeBase = true;
  13. $opts->SendResponseTo[] = $ar;
  14. $request->Options = $opts;
  15. $results = $client->Create($request);
Add Comment
Please, Sign In to add comment