The Dynmark Messaging SDK provides functionality to enable the incorporation of SMS Messaging capabilities into your .NET applications. This SDK provides a single entry point for all your messaging functionality via the MessagingServices class. To get started with this SDK simply add a reference to the Dynmark.Services.API.dll to your application project and create an instance of the
Dynmark.Services.API.MessagingServices class to access all of our messaging services. The following example shows just how easy it is. Copy Code
| |
|---|---|
//Send basic message
Dynmark.Services.API.MessagingServices services = new Dynmark.Services.API.MessagingServices();
if (services.Logon("username", "password"))
{
Dynmark.Services.API.SmsMessageClass message = services.CreateMessage();
message.Originator.Value = "value";
message.Recipients.Add("number");
message.Text = "Sample message text sent via Dynmark Messaging API";
message.Send();
}
//Send merge message
if (services.Logon("username", "password"))
{
SmsMessageClass message = services.CreateMessage();
message.Originator.Value = "NOREPLY";
MergeFieldDefinitionClass mergeFirstName = services.MergeFieldDefinitions.Add("{First Name}");
MergeFieldDefinitionClass mergeLastName = services.MergeFieldDefinitions.Add("{Last Name}");
RecipientClass recipient = message.Recipients.Add("number1");
recipient.MergeFieldProperties.Add(mergeFirstName, "Jessica");
recipient.MergeFieldProperties.Add(mergeLastName, "Lear");
RecipientClass recipient2 = message.Recipients.Add("number2");
recipient2.MergeFieldProperties.Add(mergeFirstName, "Jane");
recipient2.MergeFieldProperties.Add(mergeLastName, "Hustle");
message.Text = string.Format("Hi {0} {1}, how r u today? ", mergeFirstName.Name, mergeLastName.Name);
System.Console.WriteLine(
"Largest possible message size for listed recipients: {0}, Total message count: {1}\n",
message.LargestMessageSizeForListedRecipients(),
message.MessageCountForListedRecipients()
);
message.Send();
}
| |
Copyright Information
Information in this document is subject to change without notice. No part of this document may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without the express written permission of Dynmark International.
© 2008 Dynmark International Limited. All rights reserved.
Classes
| Class | Description | |
|---|---|---|
![]() | AssociateUserClass | Represents an associate user to the main user account |
![]() | AssociateUserCollection | Represents a collection of |
![]() | AvailableInboundNumberClass | Represents an inbound number that is or can be allocated to an account |
![]() | AvailableInboundNumberCollection | Represents a collection of |
![]() | ContactClass | Provides detailed contact information for a user or recipient |
![]() | CountryClass | Represents a country used within the |
![]() | CountryCollection | Represents a collection of |
![]() | CreditBundleClass | Represents a credit bundle |
![]() | CreditBundleCollection | Represents a collection of |
![]() | CreditCardClass | Represents a credit card. |
![]() | CurrencyClass | Represents a currency used within the |
![]() | CurrencyCollection | Represents a collection of |
![]() | Email2SmsClass | Represents an email 2 SMS configuration within the |
![]() | Email2SmsCollection | Represents a collection of |
![]() | InboundNumberClass | Represents an inbound number that is or can be allocated to an account |
![]() | InboundNumberCollection | Represents a collection of |
![]() | MarketSectorClass | Represents a market sector used within the |
![]() | MarketSectorCollection | Represents a collection of |
![]() | MergeFieldDefinitionClass | Represents a merge field definition used within the |
![]() | MergeFieldDefinitionCollection | Represents a collection of |
![]() | MergeFieldPropertyClass | Represents a merge field property used within the |
![]() | MergeFieldPropertyCollection | Represents a collection of |
![]() | MessageReceiptClass | Represents a receipt used within the |
![]() | MessageReceiptCollection | Represents a collection of |
![]() | MessagingServices | Provides messaging services for sending and recieving SMS messages to and from mobile handsets. |
![]() | NumberBundleClass | Represents a mobile number costing bundle |
![]() | NumberBundleCollection | Represents a collection of |
![]() | OriginatorClass | Contains information related to a given message originator |
![]() | PurchaseChannelClass | Represents a purchase channel used within the |
![]() | PurchaseChannelCollection | Represents a collection of |
![]() | RecipientClass | Contains information related to a given message recipient |
![]() | RecipientCollection | Represents a collection of |
![]() | SmsInboundMessageClass | Represents an SMS inbound message. |
![]() | SmsInboundMessageCollection | Represents a collection of |
![]() | SmsMessageClass | Represents an SMS message. |
![]() | UserClass | Represents a user |
Enumerations
| Enumeration | Description | |
|---|---|---|
![]() | Email2SmsInstructionEnum | Represents the possible instructions that can be applied to the email content for an email 2 SMS |
![]() | InboundNumberType | Inbound number type |
![]() | MessageStatus | Message statuses |
![]() | ProductUrlEnum | Represents a given product URL |
![]() | RegisterUrlEnum | Represents a given registration URL |
![]() | WebUrlEnum | Represents a given e-txt Web URL |

