我有一个聊天程序,用Delphi 7写的,我想用一个较小的tinyurl替换发布的长url。我已经用谷歌搜索过了,但还没有找到任何有用的东西。
发布于 2009-09-28 13:29:08
试试http://www.scripting.com/stories/2007/06/27/tinyurlHasAnApi.html
发布于 2015-10-19 23:54:05
您可以使用Google Shortener API。
使用REST,您可以像这样发送JSON值:
{"longUrl": "http://stackoverflow.com/"}结果看起来像这样:
{
"kind": "urlshortener#url",
"id": "http://goo.gl/lgNaMv",
"longUrl": "http://stackoverflow.com/"
}您需要实现身份验证。致以问候。
https://stackoverflow.com/questions/1487014
复制相似问题