简体   繁体   English

用url通过Twilio发送短信

[英]Send sms via Twilio with url

I'm using twilio to send SMS messages. 我正在使用twilio发送短信。

In the message I have an URL but instead of showing the entire URL (which works) I want something like "Click here" which is the URL. 在消息中我有一个URL,但不是显示整个URL(这是有效的)我想要像“点击这里”这样的URL。

To clarify: 澄清:

What my SMS is now: Follow this link: http://www.someurl.com 我的短信现在是什么:请点击此链接: http//www.someurl.com

What I want: Click here to ... 我想要的: 点击这里 ......

Where "Click here" is the url ie http://www.someurl.com “点击这里”的网址是http://www.someurl.com

Twilio evangelist here. Twilio福音传教士在这里。

Since there is no such thing as "markup" in an SMS, there is no way to create HTML-style hyperlinks. 由于SMS中没有“标记”这样的东西,因此无法创建HTML样式的超链接。 The fact that a string of characters in the SMS message is recognized and becomes a hyperlink is completely dependent upon the device having that capability. SMS消息中的字符串被识别并成为超链接的事实完全取决于具有该能力的设备。

Hope that helps. 希望有所帮助。

As Devin says, you can't, SMS messages are pure text, not html. 正如德文所说,你不能,短信是纯文本,而不是HTML。 What you could do is use an off-the-shelf, or custom, url shortener (ie. bit.ly) if you want the urls to either be shorter, or personalized. 如果您希望网址更短或个性化,您可以使用现成的或自定义的网址缩短程序(即bit.ly)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM