Twitter APIã®èªè¨¼ Twitter APIã®ä½¿ç¨ã¯ãç¾å¨"BASICèªè¨¼"ã¨"OAuth"ã®2éãã®æ¹æ³ãç¨æããã¦ãããããä»å¹´6æ(ï¼)ã§BASICèªè¨¼ã使ããªããªãã¨ããåã§ãä»å¾ã¯APIã使ç¨ããã®ã«ã¯OAuthã使ç¨ããå¿ è¦ãåºã¦ããããã ã ã¾ãBasicèªè¨¼ã¯ãã¹ã¯ã¼ãã ã æ¼ãã«ãªã£ã¡ããããããã¦ãããããã¨ãã話ã§ãããã Basicèªè¨¼ - Wikipedia Code â OAuth iPhoneã¢ããªã§Twitter APIã使ãããå ´å çµæ§iPhoneã®Twitterã¯ã©ã¤ã¢ã³ãã¢ããªã£ã¦ãããããããã©ãã©ãããå®è£ ãªã®ã ããï¼ å¤§æµã¯ååèµ·åæã«è¨å®ç»é¢ã§ã¦ã¼ã¶ã¼åã¨ãã¹ã¯ã¼ããå ¥åããã¦ãããã使ã£ã¦BASICèªè¨¼ã§ã¢ã¯ã»ã¹ãã¦ããã®ã§ã¯ãªãã®ããªï¼ BASICèªè¨¼ã使ãAPIã¢ã¯ã»ã¹ã®å®è£ ã¯æ¯è¼çç°¡åã(base64ã¨ã³ã³ã¼ãã£ã³ã°ãå®è£ ããã«
æ¥æ¬èªããã¥ã¡ã³ã æ¥æ¬èªã«ç¿»è¨³ãããiOS/watchOS/tvOSã®ããã¥ã¡ã³ãã§ãã è±èªçã®æ¹ãæ°ããå ´åãããã¾ãã®ã§ãæ´æ°æ¥ã確èªãã¦ä¸ããã ã¨ã³ã¿ã¼ãã©ã¤ãºç°å¢ã§ã®éç¨ã«é¢ããããã¥ã¡ã³ãã¯ãã¡ãã«ç§»åãã¾ããã App Store Connect ãã«ã ã¿ã¤ãã« æ¥ä»
iPhone SDKã使ãã«ã¯ãã©ãããã°ããã®ï¼ Apple Developerã«ç»é²ãã¦ã¿ãã Apple Developerã«ç»é²ããã¨ãã¢ããã«è£½åã®ã½ããã¦ã§ã¢éçºã«å¿ è¦ãªå種ãµãã¼ããåãããããããã«ãªãã¾ãã iPhone/iPadã¢ããªãéçºããå ´åãéçºç°å¢ãå種ããã¥ã¡ã³ããç¡åãã¦ã³ãã¼ãã§ããããã«ãªãã®ã§ãã¾ãã¯ããã¡ããç»é²ãã¾ãããã 以ä¸ã®ãµã¤ãã表示ãããGet Startedããã¯ãªãã¯ãã¾ãã ç»é²ã«ã¯ããApple IDããå¿ è¦ãªã®ã§ãæã£ã¦ããªãå ´åã¯ãCreate an Apple ID ããããã§ã«æã£ã¦ããå ´åã¯ãUse an existing Apple IDããé¸æããæ示ã«å¾ã£ã¦ç»é²å¦çãé²ãã¦ãã ããã æ¢åã®Apple IDã使ç¨ããéã«ãã¢ã«ã¦ã³ãæ å ±ï¼å§åãªã©ï¼ã«æ¥æ¬èªï¼2ãã¤ãæåï¼ã使ç¨ããã¦ããã¨ãç»é²ãé²ããããªãå ´å
Twitterã¯APIã¢ã¯ã»ã¹ã® 6æã§Basicèªè¨¼ãå»æ¢ã OAuthã®ãµãã¼ãã®ã¿ã«ãªãã¾ãããã ããOAuthã¯èªè¨¼æé ã®ä¸ã§ãã©ã¦ã¶ã¼ã使ã£ã¦Twitterå´ã§èªè¨¼ããå¿ è¦ããã iPhoneã¢ããªçã§ã¯ããã¸ããªæéã«ãªãã¾ãããã®çºã«OAuthã®ç°¡æçã®ãã㪠xAuthããµãã¼ãããã¾ãã ã ãã㧠ç§ã®ä½ã£ãiPhoneã¢ããªãTweetãªãããBasicèªè¨¼ããxAuthã«å¤æ´ãã¦ã¿ã¾ããã 1. ã¢ããªã Twitterã«ç»é²ãã a) xAuthã使ãã«ã¯ãã¾ã http://twitter.com/oauth_clients/new ã§ã¢ããªãTwitterã«ç»é²ããå¿ è¦ãããã¾ã(ãã¡ããTwitterã®ã¢ã«ã¦ã³ããå¿ è¦ã§ã)ã b) ç»é²å¾ã«è¡¨ç¤ºãããç»é²ã¢ããªæ å ±ãã¼ã¸ã«OAuthã§ä½¿ã Consumer key ã Consumer secret ãå§ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}