æè¿ã«ããã«Twitter APIã®xAuthèªè¨¼ã話é¡ã«ãªã£ã¦ãã¾ããããã¯ä¸»ã«ãã¹ã¯ãããã¢ããªã±ã¼ã·ã§ã³åãã«ç¨æãããèªè¨¼æ¹å¼ã§ãç°¡æ½ã«è¨ãã¨ãWebãã©ã¦ã¶ã§èªè¨¼ç»é¢ãéãå¿ è¦ã®ãªãOAuthãã¨ãã£ãã¨ããã§ãã å¾æ¥ã®OAuthèªè¨¼ã§ã¯ã¾ãã¢ããªã±ã¼ã·ã§ã³ï¼OAuthã³ã³ã·ã¥ã¼ãï¼ãTwitterã«æ¥ç¶ãã¦Request Tokenãåå¾ããèªè¨¼ç»é¢ãéãã¦Request Tokenãæ¿èªãããæ¿èªãããRequest Tokenã使ã£ã¦Access Tokenã¨Token Secretãåå¾ãããã¨ã«ãã£ã¦åAPIã«ã¢ã¯ã»ã¹ã§ããããã«ãªãã¾ãããããããã¯ã¢ããªã±ã¼ã·ã§ã³å´ã®å®è£ ãè¤éã«ãªãä¸ããã¹ã¯ãããã¢ããªã±ã¼ã·ã§ã³ã®å ´åã¯ããããWebãã©ã¦ã¶ã¸åãæ¿ããªããã°ãªããï¼ãã©ã¦ã¶ãå å ãããã®ãããã¾ããï¼ãã¦ã¼ã¶ã«ã¨ã£ã¦ãé¢åãªãã®ã§ãã ããã§ææ¡ãããã®ãxA
èªåã®çºã®ã¡ã¢ã§ããã æºå ã¾ãã¯Catalystããã¸ã§ã¯ããä½ãã¾ã $ mkdir -p /path/to/dir $ cd /path/to/dir $ catalyst.pl AuthSample ã¦ã¼ã¶ã¼ç¨ã®DBICã¹ãã¼ããå®ç¾©ãã¾ãã $ module-starter --module AuthSample::Schema $ cd AuthSample-Schemaã§ãã®ãã£ã¬ã¯ããªã«ã¦ã CREATE TABLE user ( user_seq INTEGER PRIMARY KEY, user_id TEXT UNIQUE, password TEXT, created_on DATETIME, updated_on DATETIME ); ãããªã¹ãã¼ããå®ç¾©ãã¦ãschema.sqlã¨ãã¦ä¿åãã¦ã $ sqlite3 -init schema.sql auth
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}