Creates a new SMS campaign
This method creates a new SMS campaign for your account.
The 'name' and 'message' fields are mandatory. Your SMS campaign name can be a maximum of 255 characters.
If a 'sendingIdentity' is specified, it must exist as a sending identity (found in 'SMS from names') on your account. This can be a maximum of 15 characters. If you don't specify a sending identity, the default identity from your account will be used for this SMS campaign.
If 'toggleShortLinks' is set to 'true', any URL links that are present in your SMS campaign content must be formatted properly, including the protocol. If you this isn’t the case, a validation error message will be returned by the API.
SOAP action: http://apiconnector.com/v2/sms/campaigns
API call in beta
Please note that this API call is in beta and is subject to change.
Input and output parameters
The input and output parameters for this method are:
Input parameters
- name - required; string
- message - required; string
- sendingIdentity - string
- toggleShortLinks - boolean
Output parameters
No output
Example
using (var client = new ApiServiceClient())
{
client.ClientCredentials.UserName.UserName = "username";
client.ClientCredentials.UserName.Password = "password";
var smsTestCampaign = new ApiSmsCampaign
{
Name = "SMS Test Campaign 3",
Message = "Test SMS campaign message content 3",
SendingIdentity = "dotdigital",
ToggleShortLinks = "false"
};
var result = client.CreateSMSCampaign(smsTestCampaign).Result;
}