{"version":"1.0","title":"api\u3092\u5229\u7528\u3057\u3066PHP\u3067bit.ly\u306e\u77ed\u7e2eURL\u3092\u4f5c\u308b","height":"190","width":"100%","author_name":"comeonly","provider_name":"Hatena Blog","blog_title":"Digitarhythm","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcomeonly.hatenablog.com%2Fentry%2F20110213%2F1297579422\" title=\"api\u3092\u5229\u7528\u3057\u3066PHP\u3067bit.ly\u306e\u77ed\u7e2eURL\u3092\u4f5c\u308b - Digitarhythm\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"author_url":"https://blog.hatena.ne.jp/comeonly/","categories":["PHP","\u77ed\u7e2eURL"],"published":"2011-02-13 15:43:42","type":"rich","url":"https://comeonly.hatenablog.com/entry/20110213/1297579422","blog_url":"https://comeonly.hatenablog.com/","description":"Twitter\u306eBOT\u3092\u3064\u304f\u308b\u306e\u306b\u5fc5\u8981\u306b\u306a\u308a\u307e\u3057\u305f\u3002 id:riku_kn:20101113:1289660088\u306e\u5185\u5bb9\u305d\u306e\u307e\u307e\u62dd\u501f\u3057\u307e\u3057\u305f\u3002 id:riku_kn\u3055\u3093\u304a\u4e16\u8a71\u306b\u306a\u308a\u307e\u3057\u305f\u3002 <?php function shortenUrl($url) { $username = '<\u30e6\u30fc\u30b6\u30fc\u540d>'; $apikey = '<API\u30ad\u30fc>'; $bitly_url = \"http://api.bit.ly/shorten?version=2.0.1&login=\" .$username; $bitly_url .= \"&apiKey=\" .$apikey; $bitly_url .= \"&lo\u2026"}