Archive for the ‘bitly’ Category

 

Bid.lyで短縮URL

7月 10th, 2010

今さらですが、短縮URLをjsonpで取ってみました。 ApiDocumentation – bitly-api – bit.ly REST API method documentation – Project Hosting on Google Code. http://bit.ly でアカウントを作成してください。 ログインして以下のURLから http://bit.ly/a/account login apiKey を確認してご自身の情報を入れてください。 shortenで短縮します。scriptはこんな感じで。 <script type=”text/javascript”> var Bitly = { login: ‘ここにログインID’, apiKey: ‘ここにAPIキーを’, format: ‘json’, shortenUrl: “http://api.bit.ly/v3/shorten”, getUrl: function(){ } shorten: function(longUrl) { $.ajax({ type: “GET”, url: Bitly.shortenUrl, data: { login: Bitly.login, apiKey: Bitly.apiKey, […]

Read full article | コメントは受け付けていません。