
Bringing enriched engagement
to retail
Connect with customers and make engagement personal with our simple, programmable communication tools & operator software.
Built for easy integration
import com.clxcommunications.xms.api.*;
import com.clxcommunications.xms.*;
public class Example {
public static void sendSms() {
try (ApiConnection conn = ApiConnection.builder()
.servicePlanId("{spid}").token("{token}").start()) {
MtBatchTextSmsResult batch = conn.createBatch(
ClxApi.batchTextSms()
.sender("12345")
.addRecipient("46123123123")
.body("Hello, world!")
.build());
System.out.println("Successfully sent batch " + batch.id());
} catch (Exception e) {
System.out.println("Batch send failed: " + e.getMessage());
}
}
}
import clx.xms
import requests
client = clx.xms.Client(service_plan_id='{spid}', token='{token}')
create = clx.xms.api.MtBatchTextSmsCreate()
create.sender = '12345'
create.recipients = {'46123123123'}
create.body = 'Hello, world!'
try:
batch = client.create_batch(create)
except (requests.exceptions.RequestException,
clx.xms.exceptions.ApiException) as ex:
print('Failed to communicate with XMS: %s' % str(ex))
$client = new Clx\Xms\Client('{spid}', '{token}');
$batchParams = new \Clx\Xms\Api\MtBatchTextSmsCreate();
$batchParams->setSender('12345');
$batchParams->setRecipients(['46123123123']);
$batchParams->setBody('Hello, World!');
try {
$result = $client->createTextBatch($batchParams);
echo('Successfully sent batch ' . $result->getBatchId());
} catch (\Clx\Xms\ApiException $ex) {
echo('Failed to communicate with XMS: ' . $ex->getMessage() . "\n");
}
- Get going quickly
Our APIs and SDKs are easy to integrate and we’ll have your new communication tools up and running in no time! - Ready to test
If you don’t try the code you’ll never know how good it is. Our library is jam-packed with code and documentation for you to test and explore!
- Adaptable to various languages
Whether you’re a fan of java, PHP or Python we got you covered—with code snippets for all our SDKs!