clxcommunications / sdk-xms-php

PHP library for sending and receiving single or batch SMS messages
Apache License 2.0
2 stars 2 forks source link

setBody method doesnt work. Getting default text #3

Open vdomah opened 4 years ago

vdomah commented 4 years ago

I'm using this php-sdk to send batch sms. All parameters are set through my code except for setBody() method - it doesn't work and I get only sms with text "This is a test message from your Sinch account". Help me please

$client = new Client('apikey', 'token');

    $batchParams = new \Clx\Xms\Api\MtBatchTextSmsCreate();
    $batchParams->setSender('12345');
    $batchParams->setRecipients(['380631234567']);
    $batchParams->setBody('Hello, World!'); // this doesn't work, getting "This is a test message from your Sinch account" instead
    $result = $client->createTextBatch($batchParams);
rycee commented 4 years ago

Thanks for the report! The "This is a test message from your Sinch account" message means that your account still is in test mode. Have you added money to your account?