【发布时间】:2016-01-22 00:21:51
【问题描述】:
我正在尝试将缩短的 bit.ly 链接添加到使用 TwilioApi 以编程方式发送的短信。代码正在运行,但由于某种原因,即使没有人点击它(bit.ly 仪表板,0 次点击),缩短的链接也会得到解决。
Twilio 或 bit.ly 是否可以检查我尝试发送的链接是否是诈骗/钓鱼/等?
有什么办法可以避免这种行为吗?
我使用的是 c#,这里是我的代码摘录:
IBitlyService s = new BitlyService("BitlyAccount", "BitlyApiKey");
string url = string.Format("http://myurl.php?idSomething={0}&idSomethingElse={1}", idSomething, idSomethingElse);
if(s.Shorten(url, out shortened) == StatusCode.OK)
{
string smsText = string.Format("Some info and stuff, click this link {0}", shortened);
TwilioRestClient tw = new TwilioRestClient("TwilioSid", "TwilioToken");
Message m = tw.SendMessage(phoneNumberSending, phoneNumberReceiving, smsText);
}
【问题讨论】: