Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1./EmailMarketing.svc/SendMail
- {
- "leadId": "681eba74-4beb-4f84-9055-406c65d516bb",
- "EmailContentName": "Real Estate Project Launch"
- }
- 2./EmailMarketing.svc/ScheduleEmailToLead
- {
- "LeadEmailAddress": "shainki.bansal@leadsquared.com",
- "From_UserIdEmailAddress": "shainki.us22286@lsqdev.in",
- "Subject": "Test email scheduled through sopaui",
- "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 <span class=\"mx-html-variable\" title=\"Name of the Lead will be replaced in the message.\" unselectable=\"on\">@{Lead:FirstName,}</span> <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’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 <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’ll be taken to the endpoint’s documentation page, which includes what query parameters the endpoint will accept, what the JSON object’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 <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> 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> ",
- "ContentText": "Test email content text",
- "Schedule": "2018-09-20 14:47:10",
- "IncludeEmailFooter": 1
- }
- 3./EmailMarketing.svc/SendEmailToLead
- {
- "SenderType": "UserId",
- "Sender": "c8421c98-8645-11e7-96c2-1203ba16b696",
- "RecipientType": "LeadEmailAddress",
- "RecipientEmailFields": "EmailAddress",
- "Recipient": "shainki.bansal@leadsquared.com",
- "EmailType": "Html",
- "EmailLibraryName": "First Follow up V2",
- "ContentHTML": "this is test email please ignore the data.",
- "ContentText": "this is test email please ignore the data.",
- "Subject": "test email subject here goes.",
- "IncludeEmailFooter": true,
- "Schedule": "2018-09-20 14:49:50",
- "EmailCategory": "News Letters"
- }
- 4./EmailMarketing.svc/SendCampaignToList
- {
- "ListId": "c84399d1-8645-11e7-96c2-1203ba16b696",
- "SenderType": "User",
- "From_UserIdEmailAddress": "shainki.us22286@lsqdev.in",
- "Subject": "APISendCampaignToList - Test email scheduled through runscope",
- "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 <span class=\"mx-html-variable\" title=\"Name of the Lead will be replaced in the message.\" unselectable=\"on\">@{Lead:FirstName,}</span> <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’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 <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’ll be taken to the endpoint’s documentation page, which includes what query parameters the endpoint will accept, what the JSON object’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 <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> 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> ",
- "ContentText": "Test email content text",
- "Schedule": "2018-09-20 14:50:10",
- "IncludeEmailFooter": 1,
- "EmailCampaignName": "API_EC_2009",
- "RecipientEmailFields": ""
- }
- 5./EmailMarketing.svc/TrackableContent.Get
- {
- "from" : "shainki.us22286@lsqdev.in",
- "to" : "shainki.bansal@leadsquared.com",
- "toName" : "Shainki Bansal",
- "subject" : "subject",
- "content" : "email Body",
- "contentType" : 2,
- "includeViewInBrowserMarkup" : 0,
- "includeUnSubscribeMarkup" : 0,
- "includeCanSpamMarkup" : 0,
- "htmlEncodeContent" : 0
- }
Add Comment
Please, Sign In to add comment