Guest User

Untitled

a guest
Sep 21st, 2018
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.12 KB | None | 0 0
  1. 1./EmailMarketing.svc/SendMail
  2. {
  3. "leadId": "681eba74-4beb-4f84-9055-406c65d516bb",
  4. "EmailContentName": "Real Estate Project Launch"
  5. }
  6.  
  7. 2./EmailMarketing.svc/ScheduleEmailToLead
  8. {
  9. "LeadEmailAddress": "shainki.bansal@leadsquared.com",
  10. "From_UserIdEmailAddress": "shainki.us22286@lsqdev.in",
  11. "Subject": "Test email scheduled through sopaui",
  12. "ContentHTML": "<p style=\"margin-bottom: 1.5em; line-height: 1.7em; font-size: 16px; box-sizing: border-box; color: rgb(88, 129, 158); font-family: 'Open Sans', sans-serif;\">Dear&nbsp;<span class=\"mx-html-variable\" title=\"Name of the Lead will be replaced in the message.\" unselectable=\"on\">@{Lead:FirstName,}</span>&nbsp;<span class=\"mx-html-variable\" title=\"Last Name of the Lead will be replaced in the message.\" unselectable=\"on\">@{Lead:LastName,}</span>,<br /> <br /> Welcome to the REST API. Below, you&rsquo;ll find a full listing of all the available endpoints. As we add more endpoints, they will be automatically documented here and available through the&nbsp;<a href=\"https://developer.wordpress.com/docs/api/console/\" style=\"box-sizing: border-box; color: rgb(0, 170, 220); -webkit-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;\">Developer Console</a>.<br /> <br /> <img src=\"https://d38a2gif862wty.cloudfront.net/t/provalant101/content/common/images/LeadSquared%20Logo.png\" /></p><p style=\"margin-bottom: 1.5em; line-height: 1.7em; font-size: 16px; box-sizing: border-box; color: rgb(88, 129, 158); font-family: 'Open Sans', sans-serif;\">For more information about a particular endpoint, click on its name under the Resource header. You&rsquo;ll be taken to the endpoint&rsquo;s documentation page, which includes what query parameters the endpoint will accept, what the JSON object&rsquo;s parameters will be in the response, and an example query/response.</p><p style=\"margin-bottom: 1.5em; line-height: 1.7em; font-size: 16px; box-sizing: border-box; color: rgb(88, 129, 158); font-family: 'Open Sans', sans-serif;\">This documentation is for our most recent version of the REST API, version 1.1. Documentation is still available for&nbsp;<a href=\"https://developer.wordpress.com/docs/api/v1/\" style=\"box-sizing: border-box; color: rgb(0, 170, 220); -webkit-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;\">version 1</a>&nbsp;of the REST API.<br /> <br /> Regards,<br /> <span class=\"mx-html-variable\" title=\"Signature of the Sender will be replaced in the message.\" unselectable=\"on\">@{Sender:Signature ,}</span></p> ",
  13. "ContentText": "Test email content text",
  14. "Schedule": "2018-09-20 14:47:10",
  15. "IncludeEmailFooter": 1
  16. }
  17.  
  18. 3./EmailMarketing.svc/SendEmailToLead
  19. {
  20. "SenderType": "UserId",
  21. "Sender": "c8421c98-8645-11e7-96c2-1203ba16b696",
  22. "RecipientType": "LeadEmailAddress",
  23. "RecipientEmailFields": "EmailAddress",
  24. "Recipient": "shainki.bansal@leadsquared.com",
  25. "EmailType": "Html",
  26. "EmailLibraryName": "First Follow up V2",
  27. "ContentHTML": "this is test email please ignore the data.",
  28. "ContentText": "this is test email please ignore the data.",
  29. "Subject": "test email subject here goes.",
  30. "IncludeEmailFooter": true,
  31. "Schedule": "2018-09-20 14:49:50",
  32. "EmailCategory": "News Letters"
  33. }
  34.  
  35. 4./EmailMarketing.svc/SendCampaignToList
  36. {
  37. "ListId": "c84399d1-8645-11e7-96c2-1203ba16b696",
  38. "SenderType": "User",
  39. "From_UserIdEmailAddress": "shainki.us22286@lsqdev.in",
  40. "Subject": "APISendCampaignToList - Test email scheduled through runscope",
  41. "ContentHTML": "<p style=\"margin-bottom: 1.5em; line-height: 1.7em; font-size: 16px; box-sizing: border-box; color: rgb(88, 129, 158); font-family: 'Open Sans', sans-serif;\">Dear&nbsp;<span class=\"mx-html-variable\" title=\"Name of the Lead will be replaced in the message.\" unselectable=\"on\">@{Lead:FirstName,}</span>&nbsp;<span class=\"mx-html-variable\" title=\"Last Name of the Lead will be replaced in the message.\" unselectable=\"on\">@{Lead:LastName,}</span>,<br /> <br /> Welcome to the REST API. Below, you&rsquo;ll find a full listing of all the available endpoints. As we add more endpoints, they will be automatically documented here and available through the&nbsp;<a href=\"https://developer.wordpress.com/docs/api/console/\" style=\"box-sizing: border-box; color: rgb(0, 170, 220); -webkit-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;\">Developer Console</a>.<br /> <br /> <img src=\"https://d38a2gif862wty.cloudfront.net/t/provalant101/content/common/images/LeadSquared%20Logo.png\" /></p><p style=\"margin-bottom: 1.5em; line-height: 1.7em; font-size: 16px; box-sizing: border-box; color: rgb(88, 129, 158); font-family: 'Open Sans', sans-serif;\">For more information about a particular endpoint, click on its name under the Resource header. You&rsquo;ll be taken to the endpoint&rsquo;s documentation page, which includes what query parameters the endpoint will accept, what the JSON object&rsquo;s parameters will be in the response, and an example query/response.</p><p style=\"margin-bottom: 1.5em; line-height: 1.7em; font-size: 16px; box-sizing: border-box; color: rgb(88, 129, 158); font-family: 'Open Sans', sans-serif;\">This documentation is for our most recent version of the REST API, version 1.1. Documentation is still available for&nbsp;<a href=\"https://developer.wordpress.com/docs/api/v1/\" style=\"box-sizing: border-box; color: rgb(0, 170, 220); -webkit-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; background-image: initial; background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: initial; background-repeat: initial;\">version 1</a>&nbsp;of the REST API.<br /> <br /> Regards,<br /> <span class=\"mx-html-variable\" title=\"Signature of the Sender will be replaced in the message.\" unselectable=\"on\">@{Sender:Signature ,}</span></p> ",
  42. "ContentText": "Test email content text",
  43. "Schedule": "2018-09-20 14:50:10",
  44. "IncludeEmailFooter": 1,
  45. "EmailCampaignName": "API_EC_2009",
  46. "RecipientEmailFields": ""
  47.  
  48. }
  49.  
  50. 5./EmailMarketing.svc/TrackableContent.Get
  51. {
  52. "from" : "shainki.us22286@lsqdev.in",
  53. "to" : "shainki.bansal@leadsquared.com",
  54. "toName" : "Shainki Bansal",
  55. "subject" : "subject",
  56. "content" : "email Body",
  57. "contentType" : 2,
  58. "includeViewInBrowserMarkup" : 0,
  59. "includeUnSubscribeMarkup" : 0,
  60. "includeCanSpamMarkup" : 0,
  61. "htmlEncodeContent" : 0
  62. }
Add Comment
Please, Sign In to add comment