ãã¤ã¼ãã«ä½ç½®æ å ±ã追å ãã ä½ç½®æ å ±ã¨ä¸ç·ã«ãã¤ã¼ãããå ´åãTwitterã¯ãã®ä½ç½®æ å ±ãä¿åãã¾ãã æ¯åãã¤ã¼ãããéã«ãä½ç½®æ å ±ãä»å ãã/ä»å ããªããé¸æãããã¨ãã§ãããã¤ã§ãéå»ã®ä½ç½®æ å ±ãå ¨ã¦åé¤ãããã¨ãå¯è½ã§ãã 詳ãã説æ
ããã«ã¡ã¯ãPHPã¨ã³ã¸ãã¢ã®éç®±ã§ãã ã¾ãã¯ããã«ãTwitterã¯140æåã§ã¯ããã¾ããï¼ï¼ï¼ åã ã¨æãããæ¹ã¯ãTwitterã¢ã«ã¦ã³ããæã£ã¦ããã°ãã¤ã¼ãããã¯ã¹ã«ä»¥ä¸ã®æåãå ¥ãã¦ã¿ã¦ãã ããã https://www.google.com/#q=Twitter%E3%81%AF140%E6%96%87%E5%AD%97%E3%81%A7%E3%81%AF%E3%81%AA%E3%81%84%E3%80%82%E3%81%A8%E6%B0%97%E3%81%A5%E3%81%84%E3%81%9F%E6%99%82%E3%81%AE%E5%87%A6%E6%96%B9%E7%AE%8B ä½æåã¨ã«ã¦ã³ãããã¾ãããï¼ 23æåã¨ã«ã¦ã³ããããã¯ãã§ãã å®éã«ã¯199æåããã¾ãã ã©ããã¦ãããªã£ã¦ãã¾ã£ãã®ã§ããããï¼ å®ã¯ãTwitterã¯ç¹æ®ãªæ¡ä»¶ã®ã¨ãã1æåã
ãªãã¨ãtwitter社ãAPIã®ãã¯ã¤ããªã¹ãå¶åº¦ã®çµäºãçºè¡¨ãã¾ããã ãã®å 容ãã¾ã¨ããã¨ä»¥ä¸ã®éãã§ãã 2011å¹´2æ11æ¥åå6æ43å30ç§ï¼PST â 太平æ´æ¨æºæå»ï¼æç¹ã«ã¦ããã¯ã¤ããªã¹ãã®èªå¯ãçµäºãã¾ããã æ¢ã«èªå¯ãåãã¦ããIPã¢ãã¬ã¹ãã¢ã«ã¦ã³ãã¯ãã®ã¾ã¾ç·©åç¶æ ãç¶ç¶ãã¾ãã ä»å¾ã¯ä¸åã®ç³è«ã»èªå¯ãåãä»ãã¾ããã æªè¿çã®ç©ã«ã¤ãã¦ãããã審æ»ããããã¨ã¯ããã¾ãããããªãã¡ãä»å¾å¾ ã£ã¦ãã¦ãèªå¯ããããã¨ã¯ããã¾ããã ä»å¾ã¯1æéããã350ã¢ã¯ã»ã¹ã«æ¼ãããç¬èªã®æ¹æ³ãèãã¦ãã ããã ãããã¯ãtwitter社ãããã¼ã¿ã®æä¾ãåãã¦ãããµã¼ãã¹ãããã¼ã¿ã®ã¢ã¯ã»ã¹ãè³¼å ¥ãã¦ãã ããã ãã¦ãç¥ããªãæ¹ã®ããã«èª¬æãã¾ãã¨ãtwitter APIã®ãã¯ã¤ããªã¹ãã¨ã¯ãå¾æ¥1æéããã150ã¢ã¯ã»ã¹ããã§ããªãã£ãç©ï¼ç¾å¨ã¯èªè¨¼å¾350ï¼ããæçãª
ã¢ã«ã¦ã³ãä½ã£ãã£ãããµãããªä½¿ã£ã¦ãªãã£ãTwitterãã¨ãã¨ã使ã£ã¦ã¿ãæ°ã«ãªã£ã¦ãä»æ´ãªããPHP PEARã®Services_twitterã試ãã¦ãã¨ããã§ãã ã¨ãããJSONã®ãã¼ãµã¼ã¨ãã¦ãµãã¼ãããã¦ãJsphonããå ¬éãµã¤ãã®ãªã³ã¯åãï¼ã¨ããããã¡ã¤ã³æ´æ°ãå¿ãã£ã½ãï¼ã®ããã«ãã¦ã³ãã¼ãã§ãã¾ããã§ããï¼ãã¾ãã¾ä»ã ãããï¼ã ã§ãï¼ ãWayback Machineãã使ãã°ãéå»ã«å ¬éããã¦ããWebãã¼ã¿ï¼ã®ãã£ãã·ã¥ï¼ã«ãã¢ã¯ã»ã¹åºæ¥ãã®ã§ãJsphonãæ¾ãã¡ããããã§ãã ãã¦ã³ãã¼ãã¯ãã¡ãâ http://web.archive.org/web/20070429015826/http://pear.hawklab.jp/get/Jsphon-1.0.1.tgz ãpãã ã®ãããªæ´æ°é »åº¦ã®ä»¥ä¸ã«å¤ããµã¤ãã¯æµããã®ãéãã¦ã¢ã¼ã«ã¤ãã追ãã¤ããªãã¨
Twitterã§èªåã®ã¿ã¤ã ã©ã¤ã³ã«è¡¨ç¤ºãããã¡ãã»ã¼ã¸ã«ãã¼ã¯ã¼ããè¦ã¤ããããä½ãåå¿ãæ稿ããããããä½ã£ã¦ã¿ãã ä»æ§ /homeã¨/repliesããã¡ãã»ã¼ã¸ãï¼ãã¼ã¸åå¾ããã ã¡ãã»ã¼ã¸ã«ãã¼ã¯ã¼ããããã°å¯¾å¿ããã¡ãã»ã¼ã¸ãæ稿ããã repliesãåªå ãã¦ã¬ã¹ããã å®è£ PEAR::HTTP_Clientã使ããã³ã¼ãã¯çµæ§ãªéã«ãªã£ã¦ãã®ã§ãè¦æã ãæ¸ãã class TwitterBotã¨ãã¦å®è£ ã require_once "HTTP/Client.php"; ã¿ã¤ã ã©ã¤ã³ã®åå¾ Twitterã¯ãã¼ã·ãã¯èªè¨¼ã®ã¿ãæ£å¼ãµãã¼ããã¦ããã®ã§PEAR::HTTP_Clientã§ãã¼ã·ãã¯èªè¨¼ãè¡ãã $basic = array('Authorization'=>'Basic '.base64_encode($this->username.':'.$this->
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}