<分区>
你有使用 bit.ly API 的 php 脚本吗?
<分区>
你有使用 bit.ly API 的 php 脚本吗?
最佳答案
根据 Ceejayoz 的示例,您可以将其设为单行!
$short_url = json_decode(file_get_contents("http://api.bit.ly/v3/shorten?login=bitlyusername&apiKey=bitlyapikey&longUrl=".urlencode("http://example.com")."&format=json"))->data->url;
关于php - 你知道 bit.ly API Php 脚本示例吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2862720/