ã¿ã¤ãã«ã®ãã¨ãç¥ãåãã«èããããã§ãããèªåãOAuthã«é¢ãã¦ã¯å°ãæªããã£ãã®ã§ãåå¼·ãã¦ãã½ã¼ã¹ãä½ãã¾ããã ããããWebã§ããã«è¦ã¤ããè³æã ã¨ãã¡ãã£ã¨æ å ±ã足ããªãã£ãããã¦å°ãã¾ãããããã ã²ã¨ã¾ãä½ã£ããã®ã§OAuthèªè¨¼ãAPIåä½ãªã©ã確èªããã®ã§ã以ä¸ã«æ å ±ãè¼ãã¾ãã OAuthèªè¨¼ã®æ¦ç¥ OAuthã®è©³ãã話ã¯ãããªãçç¥ãã¾ãããè¦ã¯ã¦ã¼ã¶ããç§ã¯ãã®ã¢ããªã±ã¼ã·ã§ã³ãä¿¡é ¼ãã¾ãããã¨ããã¡ãã»ã¼ã¸ãTwitterãªãã®ãµã¼ãã¹ã«éã£ã¦ãã¢ããªã±ã¼ã·ã§ã³ã¨ãµã¼ãã¹ã®éã§å¥½ãã«éä¿¡ã§ããããã«ããä»çµã¿ã§ãã ï¼ãªããOAuthã§ã¯ãµã¼ãã¹ã¨éä¿¡ããã¢ããªã±ã¼ã·ã§ã³ãã³ã³ã·ã¥ã¼ãã¨è¨ãããã§ãï¼ ããã§ãOAuthã§éä¿¡ãããã¨ããã¢ããªã±ã¼ã·ã§ã³ã¯ãéä¿¡ã®ããã®éµãå¿ è¦ã«ãªãã¾ããæä½éå¿ è¦ãªéµã¯ã次ã®2ã¤ã§ãã ã³ã³ã·ã¥ã¼ãã»ãã¼ ã¦ã¼ã¶ã®ã¢ã¯ã»ã¹ã»
PHPã§ä½ã£ãã²ã¼ã ãµã¤ãã§OAuthãå©ç¨ããã®ã§ã使ãæ¹ããµã³ãã«ãã¡ã¢ãã¦ããã¾ãã ãã®ãã¼ã¸ï¼SDN Projectï¼ãåèï¼ã¨ããããã®ã¾ã¾ï¼ã«ãã¦ãã¾ãã®ã§ããã¡ããè¦ã¦ã¿ã¦ãã ããã OAuthã以åæ¸ããOpenIDã¨åæ§ã«ä»çµã¿ãã®ãã®ã¯é£ããã®ã§ããããµã³ãã«ãè¦ãªããèªåãªãã«å¤ãã¦ããã°ãããã»ã©é£ãããªãã£ãããã¾ãã 大ã¾ããªæé ã¯ã以ä¸ã®éãã§ãã â Twitterã«ã¢ããªã±ã¼ã·ã§ã³ç»é²ããã â¡OAuthã®PHPããã¦ã³ãã¼ããã â¢èªåã§PHPãæ¸ã â£ãµã¼ãã«ã¢ãã Twitterã«ã¢ããªç»é² ã¾ããTwitterã«èªåã®ã¢ã«ã¦ã³ãã§ãã°ã¤ã³Twitterã®OAuthç³è«ã®ãµã¤ããããèªåã®ã¢ããªã±ã¼ã·ã§ã³åããµã¤ãã®ã¢ãã¬ã¹ãç»é²ãã¾ãã ã»Application Nameã¯ãèªåã®ãµã¼ãã¹ã®ååã§ããã¦ã¼ã¶ã¯èªè¨¼ããéã«ãã®ã¢ããªã±ã¼ã·ã§ã³åã確èª
Google, twitter, mixiã¢ããªãªã©ã®APIèªå¯ã®ããã®OAuth(ãªã¼ã¹)ã¨ãã ãããã³ã¼ã«ãå©ç¨ããã¦ãã¾ãã ä»åã¯ãããã·ã¥ã¢ãããªWebãµã¼ãã¹ãä½ãä¸ã§å¿ è¦ã«ãªã£ã¦ããOAuthã®ç°¡åãªæ¦å¿µã¨rubyã§ã®ä½¿ç¨ä¾ãç´¹ä»ãããã¨æãã¾ãã â OAuthã¨ã¯ï¼ ãã¹ã¯ãããã¢ããªãwebã¢ããªã±ã¼ã·ã§ã³ãªã©ã«ã»ãã¥ã¢ãªAPIèªè¨¼ã® æ¨æºçãªæ段ãæä¾ãããªã¼ãã³ãããã³ã«ã§ãã OAuthå©ç¨ãããã¨ã«ãã£ã¦ãã¦ã¼ã¶ã®googleã¢ã«ã¦ã³ãæ å ±(ID,Password)ãä¿æããªãã¦ãgoogleã®ã¢ãã¬ã¹å¸³ãªã©ãåç §ããwebãµã¼ãã¹ãä½ããã¨ãã§ãã¾ãã â OAuthãå¿ è¦ã«ãªã£ãèæ¯ OAuthããªãã£ãå ´åãå ç¨ã®ä¾ã®ãããªgoogleã®ã¢ãã¬ã¹å¸³ãåç §ãããµã¼ãã¹ãä½ããã¨ããå ´åãã¦ã¼ã¶ã®googleã¢ã«ã¦ã³ãæ å ±ããã¨ã«ã¢ã¯ã»ã¹ãããã¨ã«ãªãã¾ãã
Rubyï¼æéã§ãã¤ãã¿ã¼ãµã¼ãã¹ãä½ããï¼ã¨ããè¨äºã人æ°ã§ãããé¢ç½ãããªã®ã§Botã ãã©ä½ã£ã¦ã¿ã¾ãããã«ã¹ãã«ã¹ãã¼ãçºè¡¨ãã¦ããã¬ãã«1ã4ã¾ã§ã®ã¦ã£ã«ã¹æ´»åè¦åãã¹ã¯ã¬ã¤ãã³ã°ã§åå¾ãã¦ãã¦ããã¤ã¼ããç¶ããBotã§ããhttp://twitter.com/kaspersky_botç®çOauthã使ã£ã¦ã¿ããRubyãæ¸ãããæ°å転æã«ã¹ãã«ã¹ãã¼ãæè¿è²·ã£ã(ï½ã»Ïã»)使ããã®Rubyæ¬ä½Ruby Gems - OauthRuby Gems - TwitterRuby Gems - Mechanize $ sudo gem install oauth $ sudo gem install twitter $ sudo gem install mechanize Rubyã¨gemã¯æ¢ã«å ¥ã£ã¦ãããã®ã¨ãã¾ããOauthã使ã£ããã¤ã¼ãã¯ãRuby Twitter Gemã®ã¿ã§
.bbpBox22080852432 {background:url(https://s.twimg.com/a/1286141004/images/themes/theme1/bg.png) #C0DEED;padding:20px;} p.bbpTweet{background:#fff;padding:10px 12px 10px 12px;margin:0;min-height:48px;color:#000;font-size:18px !important;line-height:22px;-moz-border-radius:5px;-webkit-border-radius:5px} p.bbpTweet span.metadata{display:block;width:100%;clear:both;margin-top:8px;padding-top:12px;hei
ããè¦ãæ å ±ãããã¡ã®ç°å¢ã§ã¯ãã¾ããããªãã£ããããã®ã§ãã¡ã¢ã£ã¦ããã (2011.01.12)*1 Twitter ã®ã·ã¹ãã å´ã§ã®æºå Twitter ã¢ã«ã¦ã³ãåå¾ ãä»ããç»é²ï¼ããé¸ãã§ä»ããç»é²ï¼ ã¡ãªã¿ã«ãèªåãæ®æ®µä½¿ã£ã¦ãã¢ã«ã¦ã³ãã¨åãããå ´åã¯ãGmail ã®è¤æ°ã¢ã«ã¦ã³ãä½æ¦ã使ãããã¨ãã°ãhoge@gmail.com ãªããhog.e@gmail.com ãèªåã®ã¢ã«ã¦ã³ãã¨ãã¦ä½¿ããã¨ãããã®ãããããï¼ å種ãã¼ã®åå¾ http://twitter.com/apps/newhttp://dev.twitter.com/apps ã«ã¢ã¯ã»ã¹ãã¦ãä½ããã bot ã®ã¢ããªã±ã¼ã·ã§ã³æ å ±ãç»é²ããã ã¢ããªã±ã¼ã·ã§ã³ã®åå æ¦è¦èª¬æ ã¢ããªã±ã¼ã·ã§ã³ã®ç¨®é¡( = ã¯ã©ã¤ã¢ã³ãã¢ããªã±ã¼ã·ã§ã³ ) ã³ã¼ã«ããã¯URL ( http://twitter.com/[
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}