我想添加縮短bit.ly鏈接到使用TwilioApi以編程方式發送的短信。代碼正在工作,但由於某種原因,即使沒有人點擊它,縮短的鏈接也正在被解析(bit.ly dashboard,0次點擊)。積分bit.ly和twilio
是否有可能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);
}