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

 ClassDescription
Public classAssociateUserClassRepresents an associate user to the main user account
Public classAssociateUserCollectionRepresents a collection of AssociateUserClass
Public classAvailableInboundNumberClassRepresents an inbound number that is or can be allocated to an account
Public classAvailableInboundNumberCollectionRepresents a collection of InboundNumberClass
Public classContactClassProvides detailed contact information for a user or recipient
Public classCountryClassRepresents a country used within the ContactClass
Public classCountryCollectionRepresents a collection of CountryCollection
Public classCreditBundleClassRepresents a credit bundle
Public classCreditBundleCollectionRepresents a collection of CreditBundleClass
Public classCreditCardClassRepresents a credit card.
Public classCurrencyClassRepresents a currency used within the MessagingServices
Public classCurrencyCollectionRepresents a collection of CurrencyClass
Public classEmail2SmsClassRepresents an email 2 SMS configuration within the MessagingServices
Public classEmail2SmsCollectionRepresents a collection of Email2SmsClass
Public classInboundNumberClassRepresents an inbound number that is or can be allocated to an account
Public classInboundNumberCollectionRepresents a collection of InboundNumberClass
Public classMarketSectorClassRepresents a market sector used within the MessagingServices
Public classMarketSectorCollectionRepresents a collection of MarketSectorClass
Public classMergeFieldDefinitionClassRepresents a merge field definition used within the SmsMessageClass
Public classMergeFieldDefinitionCollectionRepresents a collection of MergeFieldDefinitionClass
Public classMergeFieldPropertyClassRepresents a merge field property used within the RecipientClass
Public classMergeFieldPropertyCollectionRepresents a collection of MergeFieldPropertyClass
Public classMessageReceiptClassRepresents a receipt used within the SmsMessageClass
Public classMessageReceiptCollectionRepresents a collection of MessageReceiptClass
Public classMessagingServicesProvides messaging services for sending and recieving SMS messages to and from mobile handsets.
Public classNumberBundleClassRepresents a mobile number costing bundle
Public classNumberBundleCollectionRepresents a collection of NumberBundleClass
Public classOriginatorClassContains information related to a given message originator
Public classPurchaseChannelClassRepresents a purchase channel used within the ContactClass
Public classPurchaseChannelCollectionRepresents a collection of PurchaseChannelClass
Public classRecipientClassContains information related to a given message recipient
Public classRecipientCollectionRepresents a collection of RecipientClass
Public classSmsInboundMessageClassRepresents an SMS inbound message.
Public classSmsInboundMessageCollectionRepresents a collection of SmsInboundMessageClass
Public classSmsMessageClassRepresents an SMS message.
Public classUserClassRepresents a user

Enumerations

 EnumerationDescription
Public enumerationEmail2SmsInstructionEnumRepresents the possible instructions that can be applied to the email content for an email 2 SMS
Public enumerationInboundNumberTypeInbound number type
Public enumerationMessageStatusMessage statuses
Public enumerationProductUrlEnumRepresents a given product URL
Public enumerationRegisterUrlEnumRepresents a given registration URL
Public enumerationWebUrlEnumRepresents a given e-txt Web URL