I want to "Schedule a send using the Send API” (REST) I was following the documentation, but it was removed around 7/6/2016. Is this not possible using rest anymore?
I was implementing "Schedule an integrated send using the given definition.” but the page was removed as well. I was hoping to follow the doc "Send Your Email to Your List”. I searched: Fuel SDKs & Fuel APIs but it seems that that functionality has been removed for rest, is this the case?
Under "Fuel SDKs, the only “Send” option is for “Triggered Sends”, how do I send an email to a list without using Triggered Sends?
I have implemented the following libraries and they are working well: FuelSDK-Node (fuel-soap, fuel-rest, fuel-auth). They help with everything up to the point of sending the email. I am using them to send Triggered emails, but I also need to send user-initiated emails as well.
Here is a non-working attempt at what was in the documentation previously:
mcloudTools.messageDefinitionSend = function() {
var restOptions = {
auth: {
clientId: process.env.MCLOUD_CLIENTID
, clientSecret: process.env.MCLOUD_SECRET
}
// , origin: 'https://www.exacttargetapis.com' // default --> https://www.exacttargetapis.com
};
var sendId = '2177425';
var options = {
uri: 'https://www.exacttargetapis.com/data/v1/integration/send/salesforce/' + sendId + '/schedule',
headers: {
'Content-Type': 'application/json'
},
json: {
"Schedule": {
"StartImmediately": true,
"AllRecipientsOptedIn": true
}
}
};
return new BPromise(function(fulfill, reject) {
var RestClient = new FuelRest(restOptions);
return RestClient
.post(options)
.then(function(response) {
fulfill(response);
})
.catch(function(err) {
reject(err);
});
});
};
Here is my triggered send, this works fine, what I need is a process for sending an email to a list or a User-Initiated email.
mcloudTools.messageDefinitionSends = function(options) {
// var options = {
// uri: '/messaging/v1/messageDefinitionSends/' + 'key:' + sendKey + '/send',
//
// headers: {
// 'Content-Type': 'application/json'
// },
// json: {
// "From": {
// "Address": fromAddress,
// "Name": "Sender"
// },
// "To": {
// "Address": 'first.last@company.com'
// , "SubscriberKey": "SDKSubscriberDS"
// , "ContactAttributes": {
// "SubscriberAttributes": {
// "ConversionReferenceId": req.attributes.uuid_card_url
// }
// }
// }
// , "OPTIONS": {
// "RequestType": "ASYNC"
// }
// }
// };
return new BPromise(function(fulfill, reject) {
var restOptions = {
auth: {
clientId: process.env.MCLOUD_CLIENTID
, clientSecret: process.env.MCLOUD_SECRET
}
// , origin: 'https://www.exacttargetapis.com' // default --> https://www.exacttargetapis.com
};
var RestClient = new FuelRest(restOptions);
return RestClient
.post(options)
.then(function(response) {
fulfill(response);
})
.catch(function(err) {
reject(err);
});
});
};