短縮URL展開APIデモ
t.coとかgoo.glなどで試してみてね
短縮URL展開APIの使い方
パラメータ説明:使い方:
- end point URL:
- http://ryouchi.usamimi.info/expandurl/index.php
- パラメータ:callback:
- コールバック関数名を指定
- パラメータ:url:
- タイトルを取得したいURLをencodeして指定
callback関数:getOrgURL()取得データ(例):
URL:http://goo.gl/kLPZU
の場合、
http://ryouchi.usamimi.info/expandurl/index.php?callback=getOrgURL&url=http%3A//goo.gl/kLPZU
などと指定する。
getOrgURL( {"inputurl":"http:\/\/goo.gl\/kLPZU","outputurl":"http:\/\/ryouchi.seesaa.net\/"} );タイトル取得API for JSONPとかと一緒に使うのもいいかもね。