Twitter意图推特添加正斜杠

时间:2013-03-10 20:55:36

标签: html url twitter

我正在遵循API指南来发推文:

http://twitter.com/intent/tweet?text=Don%27t+hide+your+incessant+curiosity%2E+Exclaim+it%2E+%23quote+http://itechthereforeiam.com+via+@mjbrender

但它会在结尾附加一个'/':

  

不要隐藏你不间断的好奇心。惊叹吧。 #引用   http://itechthereforeiam.com来自@mjbrender /

我找到了一些针对这个问题的对话,但没有回答这个问题。

感谢您的帮助。

2 个答案:

答案 0 :(得分:4)

不知道你是否有这个工作,但我把通过声明移到"前面"它摆脱了斜线。

例如:

https://twitter.com/intent/tweet?via=UserName&url=http://MyURL.com&text=Share your Story and Win!&hashtags=myHashTag&

我之前在最后有了via标签,它会产生斜线。使用此代码,via仍然出现在结尾,而不是消息的开头,只是没有前向斜杠。

希望这有帮助!

答案 1 :(得分:3)

这是因为您没有对MyURL进行URL编码。 试试这个:

https://twitter.com/intent/tweet?text=Don%27t+hide+your+incessant+curiosity.+Exclaim+it.+%23quote+http%3A//itechthereforeiam.com+via+@mjbrender