Closed harveysanders closed 1 year ago
Hi @harveysanders, thanks for posting an issue! The shortenUrls
param should be included in the next release for twilio-go on this upcoming Wednesday (October 19th). As for the docs bug, feel free to file a customer support ticket (https://twilio.com/help/contact) in order to properly track the issue. I'll also try to escalate it internally since it'll be launching in the libraries soon.
Update: no need to reach out to support for the docs typo, should've just been fixed!
@beebzz Perfect! Thanks for the update.
Issue Summary
Hi! I may have missed it but I believe the
ShortenUrl
param is missing fromCreateMessageParams
. This may be intentional as the API docs state that Link Shortening is in Public Beta. I would like to contribute a PR if you do want to add the param.https://www.twilio.com/docs/sms/api/message-resource#create-a-message-resource-with-shortened-link
I propose the following addition to the
CreateMessage
parameters:true
to enable Link Shortening. You will need to set up your domain and Messaging Services to use Link Shortening. Get started here. This parameter isfalse
by default.Example Usage
Thanks!
Sidenote
The API docs have a typo here. "ShortenUrl=true" should say "ShortenUrls=true" https://www.twilio.com/docs/sms/api/message-resource#create-a-message-resource-with-shortened-link