Code Example

Following are the examples of sending messages with SMS API in different languages.

Python

download

Java

Dependent code examples of SMSSend_4.2 and VoiceSend_4.4 should be dependent on following httpclient4.2

<dependency>
    <groupId>org.apache.httpcomponents</groupId>
    <artifactId>httpclient</artifactId>
    <version>4.2</version>
</dependency>
<dependency>
    <groupId>org.apache.httpcomponents</groupId>
    <artifactId>httpmime</artifactId>
    <version>4.2</version>
</dependency>
<dependency>
    <groupId>org.json</groupId>
    <artifactId>json</artifactId>
    <version>20140107</version>
</dependency>

Code examples of SMSSend_4.4 and VoiceSend_4.4 should be dependent on following httpclient4.4

<dependency>
    <groupId>org.apache.httpcomponents</groupId>
    <artifactId>httpclient</artifactId>
    <version>4.4</version>
</dependency>
<dependency>
    <groupId>org.apache.httpcomponents</groupId>
    <artifactId>httpmime</artifactId>
    <version>4.4</version>
</dependency>
<dependency>
    <groupId>org.json</groupId>
    <artifactId>json</artifactId>
    <version>20140107</version>
</dependency>

httpclient httpmime org.json

download

PHP

download

Ruby

download

Perl

download

CSharp

download

Nodejs

download