HTTP SMS API Examples

The use of SMS APIs (Application Programming Interfaces) provides several advantages for businesses and organizations. This section gives you examples on the use of the HTTP API. Some examples point out how to issue an HTTP request from various programming languages, others are related to message types and HTTP API features.

How to send SMS from ASP, C#, ...

These are examples of making HTTP requests from various programming languages. They show you how to send a text SMS message using an HTTP GET request through the HTTP SMS API:

Example #1: How to send a text message from ASP using a HTTP request
Example #2: How to send a text message from C# using a HTTP request

How to send other types (Wap push, EMS, MMS, etc...)

When you post a message to the Ozeki NG, you need to specify two parameters: the message type and the message data. The message type defines the type of the message according to the Ozeki Mobile Message Type specification, the message data contains the message text or the parameters belonging to the message. The message data is often formatted as an XML document. The message data is urlencoded.

Example #3: How to send a text message (SMS)
Example #4: How to send a text message to multiple recipients (SMS)
Example #5: How to send a binary message (SMS)
Example #6: How to send a picture message (MMS)

Examples of using HTTP SMS API features

The HTTP API provides some useful features, such as message routing, HTTP callback request on delivery report events, user credit management, etc. The examples in this section give you information about these features.

Message routing

Example #7: How to select which service provider connection will be used to send the message

Accounting, credit management

Example #8: How to download credit information of a user account
Example #9: How to add credits to a user account
Example #10: How to set the number of credits of a user a account

How to operate with a single message

These examples demonstrate how you can operate with only a single message in Ozeki NG SMS Gateway. In this way you can query, mark, or delete a single message by its ID. Please find our examples on the respective pages.

Example #11: How to query a single message by its ID
Example #12: How to mark a single message by its ID
Example #13: How to delete a single message by its ID

How to query the addressbook in Ozeki NG SMS Gateway

The example available below demonstrates how you can query the addressbook of a given user in Ozeki NG SMS Gateway. Therefore you will gain all the contacts of a user. Please browse through our example:

Example #14: How to query the addressbook of a given user

How to query the message templates in Ozeki NG SMS Gateway

If you wish to query the message templates of a given user in Ozeki NG SMS Gateway please follow the step of our example:

Example #15: How to query the message templates of a given user

How to operate with message folders

The examples provided in this section offer solutions on how you can operate with message folders. Therefore, you can learn how to query message list of a folder, how to delete message lists, and how to delete message folder items permanently.

Example #16: How to query message list of a message folder
Example #17: How to delete message list of a message folder
Example #18: How to delete folder items permanently

More information