infobip / infobip-api-php-client

Infobip API client library in PHP using composer.
https://www.infobip.com/docs/api
MIT License
80 stars 68 forks source link

Short URL not working in the 3.0 version #46

Closed RodrigoBrolese closed 3 years ago

RodrigoBrolese commented 3 years ago

I started to implement the new 3.0 version to send SMS messages, but, on the testing of the SDK, when links is used they don't get shorten.

Can your team check if this is some bug or if now this SDK dont will short links?

RodrigoBrolese commented 3 years ago

We found the fix by contact the support via e-mail. Now is needed to add the tracking class on the SMS message request.

Exemple:

$tracking = (new SmsTracking())
    ->setTrack("URL");

$request = (new SmsAdvancedTextualRequest())
    ->setMessages([$message])
    ->setTracking($tracking);