{"id":156,"date":"2009-07-05T00:29:19","date_gmt":"2009-07-04T15:29:19","guid":{"rendered":"http:\/\/www.typea.info\/blog\/index.php\/2009\/07\/05\/mixi_twitter_api\/"},"modified":"2009-07-05T00:29:19","modified_gmt":"2009-07-04T15:29:19","slug":"mixi_twitter_api","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2009\/07\/05\/mixi_twitter_api\/","title":{"rendered":"mixi\u30a2\u30d7\u30ea Twitter API \u7de8 \uff08\u691c\u7d22\u3057\u3066\u307f\u308b)"},"content":{"rendered":"<p>\u305d\u308d\u305d\u308d\u3061\u3087\u3063\u3068\u305a\u3064\u4f7f\u3048\u305d\u3046\u306a\u3082\u306e\u3092\u3002<\/p>\n<p>Twitter \u306e\u691c\u7d22\u30a2\u30d7\u30ea\u3092\u4f5c\u3063\u3066\u307f\u308b\u3002<\/p>\n<p>\u3068\u3044\u3063\u3066\u3082\u3001Twitter\u3082\u6700\u8fd1\u4f7f\u3044\u59cb\u3081\u305f\u3070\u304b\u308a\u30fb\u30fb\u30fbTwitter\u306e\u6d41\u5100\u3084\u3089\u3082\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u306e\u3067\u3001API\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u898b\u306a\u304c\u3089\u3001\u306a\u3093\u3068\u306a\u304f\u4f5c\u3063\u3066\u307f\u308b\u3002<\/p>\n<p>\u5168\u4f53\u50cf\u3092\u628a\u63e1\u3059\u308b\u306e\u3082\u9762\u5012\u306a\u306e\u3067\u3001\u307e\u305a\u306f\u691c\u7d22\u304b\u3089\u3002<\/p>\n<p><a href=\"http:\/\/apiwiki.twitter.com\/Twitter-Search-API-Method%3A-search\">http:\/\/apiwiki.twitter.com\/Twitter-Search-API-Method%3A-search<\/a><\/p>\n<p>HTTP GET\u3092\u5229\u7528\u3057\u3066\u3001\u4ee5\u4e0b\u306eURL\u306e <em>format <\/em>\u306b\u3001JSON\u3084\u3089ATOM\u3084\u3089\u8fd4\u3057\u3066\u307b\u3057\u3044\u66f8\u5f0f\u3092\u6307\u5b9a\u3057\u305fURL\u306b\u30d1\u30e9\u30e1\u30fc\u30bf\u3092URI\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3057\u3066\u6e21\u3057\u3066\u3042\u3052\u308c\u3070\u3088\u3044\u3002<\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"2\" width=\"400\">\n<tbody>\n<tr>\n<td class=\"code\" valign=\"top\" width=\"400\"><a href=\"http:\/\/search.twitter.com\/search.format\">http:\/\/search.twitter.com\/search.<i>format<\/i><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>JSON\u3067\u8fd4\u3057\u3066\u3082\u3089\u3046\u3053\u3068\u3068\u3057\u3066\u3001JSON\u3092\u8981\u6c42\u3059\u308b\u3001Google Gadgets API\u306f\u3001\u4ee5\u4e0b\u3092\u53c2\u8003\u306b\u3002<\/p>\n<p><a href=\"http:\/\/code.google.com\/intl\/ja\/apis\/gadgets\/docs\/remote-content.html#Fetch_JSON\">http:\/\/code.google.com\/intl\/ja\/apis\/gadgets\/docs\/remote-content.html#Fetch_JSON<\/a><\/p>\n<p>\u7d50\u679c\u306f\u3001JSON\u3067\u5e30\u3063\u3066\u304d\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30ad\u30fc results \u4ee5\u4e0b\u306b\u30ec\u30b3\u30fc\u30c9\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u7e70\u308a\u8fd4\u3057\u3042\u308a\u3001text \u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u30b3\u30e1\u30f3\u30c8\u304c\u3001profile_user_image \u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u30e6\u30fc\u30b6\u30fc\u306e\u30a4\u30e1\u30fc\u30b8URL\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u611f\u3058\u3002<\/p>\n<p>\u9069\u5f53\u306btext\u4e2d\u306eURL\u3092\u30ea\u30f3\u30af\u306b\u3001\u30e6\u30fc\u30b6\u30fcID\u3092\u30e6\u30fc\u30b6\u30fc\u30da\u30fc\u30b8\u3078\u306e\u30ea\u30f3\u30af\u306b\u7f6e\u63db\u3059\u308b\u51e6\u7406\u3092\u66f8\u3044\u3066\u304a\u3057\u307e\u3044\u3002<\/p>\n<p>&#8595; \u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/53ed1fca57f0_1508A\/mixi_app_twitter01.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" border=\"0\" alt=\"mixi_app_twitter01\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/53ed1fca57f0_1508A\/mixi_app_twitter01_thumb.jpg\" width=\"271\" height=\"244\" \/><\/a>&#160;<\/p>\n<p>URL\u3092\u30ea\u30f3\u30af\u306b\u7f6e\u304d\u63db\u3048\u308b\u6b63\u898f\u8868\u73fe\u304c\u3046\u307e\u304f\u52d5\u304b\u306a\u3044\u30fb\u30fb\u30fb<\/p>\n<p>\u884c\u672b\u306b\u3061\u3083\u3093\u3068\u30de\u30c3\u30c1\u3057\u3066\u304f\u308c\u306a\u3044\u30fb\u30fb\u30fb<\/p>\n<p>\u9762\u5012\u306a\u306e\u3067\u3001\u3068\u308a\u3042\u3048\u305a\u3001\u672b\u5c3e\u306b\u30b9\u30da\u30fc\u30b91\u6587\u5b57\u4ed8\u52a0\u3057\u3066\u56de\u907f\u3002\u3068\u3002<\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"2\" width=\"675\">\n<tbody>\n<tr>\n<td class=\"code\" valign=\"top\" width=\"673\">\n<p>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt;            <br \/>&lt;Module&gt;             <br \/>&#160; &lt;ModulePrefs title=&quot;twitter search sample&quot;&gt;             <br \/>&#160;&#160;&#160;&#160;&#160; &lt;Require feature=&quot;opensocial-0.8&quot;\/&gt;             <br \/>&#160; &lt;\/ModulePrefs&gt;             <br \/>&#160; &lt;Content type=&quot;html&quot;&gt;             <br \/>&#160;&#160;&#160;&#160; &lt;![CDATA[             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;style type=&quot;text\/css&quot;&gt;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; a:active, a:hover, .b:active, .link:active {             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; color:#AAAAAA;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; text-decoration:underline;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; a, .link {             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; color:#2694E8;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; cursor:pointer;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; text-decoration:none;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;\/style&gt;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;script type=&quot;text\/javascript&quot;&gt;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; \/**             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; * mixi \u30a2\u30d7\u30ea : Twitter \u691c\u7d22\u3092\u884c\u3046             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; *\/             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; function search_twitter(url) {             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var baseurl = &quot;<a href=\"http:\/\/search.twitter.com\/search.json\" ;?=\";?\">http:\/\/search.twitter.com\/search.json&quot;;<\/a>             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (url) {             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url = baseurl + url;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; } else {             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url = baseurl + makeHttpParam(&#8216;q&#8217;, true);             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var params = {};             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; params[gadgets.io.RequestParameters.METHOD] = gadgets.io.MethodType.GET;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.JSON;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; gadgets.io.makeRequest(url, searchResponse, params);             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; \/**             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; * \u691c\u7d22\u7d50\u679c\u51e6\u7406             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; *\/             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; function searchResponse(responseObj) {             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var html = &quot;&quot;;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var jsondata = responseObj.data             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var next_page = jsondata[&#8216;next_page&#8217;];             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (next_page) {             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; html += &quot;&lt;a href=&#8217;javascript:search_twitter(\\&quot;&quot; + next_page + &quot;\\&quot;);&#8217;&gt;next page&lt;\/a&gt;&quot;;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; html += &quot;&lt;br\/&gt;&quot;;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var results = jsondata[&#8216;results&#8217;];             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; html +=&quot;&lt;table border=&#8217;0&#8242;&gt;&quot;;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; for (var i=0; i&lt;results.length; i++) {             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var result = results[i];             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; html += &quot;&lt;tr style=&#8217;font-size:small;&#8217;&gt;&quot;;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; html +=&#160;&#160; &quot;&lt;td&gt;&quot;;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; html +=&#160;&#160;&#160;&#160; &quot;&lt;a href=&#8217;<a href=\"http:\/\/twitter.com\/\" ?=\"?\">http:\/\/twitter.com\/&quot;<\/a> + result[&#8216;from_user&#8217;] + &quot;&#8217; target=&#8217;_blank&#8217;&gt;&quot;;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; html +=&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &quot;&lt;img src=&#8217;&quot; + result[&#8216;profile_image_url&#8217;] + &quot;&#8217; border=&#8217;none&#8217;\/&gt;&quot;;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; html +=&#160;&#160;&#160;&#160; &quot;&lt;\/a&gt;&quot;;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; html +=&#160;&#160; &quot;&lt;\/td&gt;&quot;;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; html +=&#160;&#160; &quot;&lt;td&gt;&quot;;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; html +=&#160;&#160;&#160;&#160; &quot;&lt;a href=&#8217;<a href=\"http:\/\/twitter.com\/\" ?=\"?\">http:\/\/twitter.com\/&quot;<\/a> + result[&#8216;from_user&#8217;] + &quot;&#8217; target=&#8217;_blank&#8217;&gt;&quot;;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; html +=&#160;&#160;&#160;&#160;&#160;&#160; &quot;&lt;span style=&#8217;color:#2FC2EF;font-weight:bold;&#8217;&gt;&quot; + result[&#8216;from_user&#8217;] + &quot;:&lt;\/span&gt;&quot;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; html +=&#160;&#160;&#160;&#160; &quot;&lt;\/a&gt;&quot;;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; html +=&#160;&#160;&#160;&#160; createLink(result[&#8216;text&#8217;]) + &quot;&lt;\/br&gt;&quot;;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; html +=&#160;&#160; &quot;&lt;\/td&gt;&quot;;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; html += &quot;&lt;\/tr&gt;&quot;;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; html += &quot;&lt;\/table&gt;&quot;;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; document.getElementById(&#8216;content_div&#8217;).innerHTML = html;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; function createLink(text) {             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return toUserUrlText(toFuzzyUrlText(text + &#8216; &#8216;));             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; \/** \u3061\u3087\u3063\u3068\u3044\u3044\u52a0\u6e1b\u306bURL\u3092\u30ea\u30f3\u30af\u306b\u5909\u66f4\u3059\u308b\u95a2\u6570 *\/             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; function toFuzzyUrlText(text) {             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var ret = text;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var ptn = \/(http:\\\/\\\/.*?)[ $]\/g; \/\/ \u884c\u672b\u306b\u30de\u30c3\u30c1\u3057\u306a\u3044\uff1f\uff1f\uff1f             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var ary = ptn.exec(text);             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; while(ary) {             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ret = ret.replace(ary[0], &quot;&lt;a href=&#8217;&quot; + RegExp.$1 + &quot;&#8217; target=&#8217;_blank&#8217;&gt;&quot; + ary[0] + &quot;&lt;\/a&gt;&quot;);             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ary = ptn.exec(text);             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return ret;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; \/** \u3061\u3087\u3063\u3068\u3044\u3044\u52a0\u6e1b\u306bTwitter ID \u3092\u30ea\u30f3\u30af\u306b\u5909\u66f4\u3059\u308b\u95a2\u6570 *\/             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; function toUserUrlText(text) {             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var ret = text;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var ptn = \/@([A-Za-z]{1,}?):\/g;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var ary = ptn.exec(text);             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; while(ary) {             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ret = ret.replace(ary[0], &quot;&lt;a href=&#8217;<a href=\"http:\/\/twitter.com\/\" ?=\"?\">http:\/\/twitter.com\/&quot;<\/a> + RegExp.$1 + &quot;&#8217; target=&#8217;_blank&#8217;&gt;&quot; + ary[0] + &quot;&lt;\/a&gt;&quot;);             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ary = ptn.exec(text);             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return ret;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; \/**             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; * HTTP GET\u30ea\u30af\u30a8\u30b9\u30c8\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u751f\u6210             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; *\/             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; function makeHttpParam(param_id, isFirstParam) {             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; isFirstParam = !(isFirstParam == undefined);             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var paramObj = document.getElementById(param_id);             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var ret = &quot;&quot;;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (paramObj != null) {             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ret = ((isFirstParam)?&quot;?&quot;:&quot;&amp;&quot;) + param_id + &quot;=&quot;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; + encodeURIComponent(paramObj.value);             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return ret;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;\/script&gt;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;input type=&quot;text&quot; size=&quot;16&quot; id=&quot;q&quot;\/&gt;&lt;input type=&quot;button&quot; name=&quot;search&quot; value=&quot;twitter search&quot; onclick=&quot;javascript:search_twitter();&quot;\/&gt;             <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;div id=&quot;content_div&quot;\/&gt;             <br \/>&#160;&#160;&#160;&#160; ]]&gt;             <br \/>&#160; &lt;\/Content&gt;             <br \/>&lt;\/Module&gt;<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>\u305d\u308d\u305d\u308d\u3061\u3087\u3063\u3068\u305a\u3064\u4f7f\u3048\u305d\u3046\u306a\u3082\u306e\u3092\u3002 Twitter \u306e\u691c\u7d22\u30a2\u30d7\u30ea\u3092\u4f5c\u3063\u3066\u307f\u308b\u3002 \u3068\u3044\u3063\u3066\u3082\u3001Twitter\u3082\u6700\u8fd1\u4f7f\u3044\u59cb\u3081\u305f\u3070\u304b\u308a\u30fb\u30fb\u30fbTwitter\u306e\u6d41\u5100\u3084\u3089\u3082\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u306e\u3067\u3001API\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u898b\u306a\u304c\u3089\u3001\u306a\u3093\u3068 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[23],"tags":[],"class_list":["post-156","post","type-post","status-publish","format-standard","hentry","category-mixiapp"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/156","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=156"}],"version-history":[{"count":0,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/156\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}