I am trying to create a URL shortener API to SMS.
I follow the instructions of recommendations present in the question 161055 (Is there any way to shorten URL in SMS in Marketing Cloud?).
I am doing almost equal but i always receive and server error and the sms sending fails.
The code that i am using is this:
%%[
var @shortenUrl, @bitlyUrl, @link
set @link = URLEncode('https://www.example.com')
set @bitlyUrl = 'https://api-ssl.bitly.com/v3/shorten?access_token=ACCESS_TOKEN&longUrl='
set @shortenUrl = HTTPGet(Concat(@bitlyUrl,@link,"&format=txt"))
]%%
%%=RedirectTo(@shortenUrl)=%%
Is it possible that this method is no longer available? Or am i doing something wrong?
Thanks in advance, Pedro Pereira