ç¾å¨ã¯æ£å¸¸ã«ç¨¼åããããã«ãªã£ã¦ãã¾ãããPVããã¤ã¼ããããµã¼ãã¹ã®è¨å®ç»é¢ãéããªããªã£ã¦ãã¾ããã
åå
ããã°ã©ãã³ã°çæ¾éã®ããã°ã«ããããã«ã6æ12æ¥ããTwitter APIå©ç¨æã®ä»æ§ãå¤ãã£ã¦ãã¾ããã
ãã®ããã°ãè¦ã¦ã¯ããã®ã§ããã以åãããCallback URLsãã®è¨å®ã¯å ¥ãã¦ããã®ã§ãããµã¼ããä»ã¾ã§å ¥ããã§ãããã£ããããã¨ãã¾ãæ°ã«ããã«ããéããã¦ãã¾ããã
ããããè¨å®ãã¦ãããCallback URLsããtypoãã¦ãã»ã»ã»
ãtweetpvservice.nkd.jpãã®ã¤ããããtweetpvserivce.nkd.jpãã«ãªã£ã¦ãã¾ããï¼(^o^)ï¼¼
ã¾ãããããªãã§ã³ããã¦ããªãã¦ã»ã»ã»
è¨å®ç®æ
Twitter Application Management ããã対象ã¢ããªã®è¨å®ãéãã¾ãã
ãSettingsãã¿ãã®ãCallback URLsãã¸ããã°ã©ã ã§ã³ã¼ã«ããã¯æå®ãã¦ããURLãè¨å®ãã¾ãã
ãããªæã
ã½ã¼ã¹å´ã¯ã¨ããã¨ãCoreTweetã使ã£ã¦ãããªããã½ã¼ã¹ãä¿®æ£ããã®ã¯ããã®ç¬¬3å¼æ°ã§ããã
var oAuthSession = OAuth.Authorize(consumerKey, consumerSecret, "http://tweetpvservice.nkd.jp/Twitter/AuthCallback");
HTTPSã«ããããã«ç¬èªãã¡ã¤ã³ä½¿ãã®ããã¡ãããããªãâ¦
ã¾ã¨ã
æ£ç´ãtypoãã¦ããã¨ãæ°ãä»ããªãã£ãããããããWebãµã¤ãã«ã¢ã¯ã»ã¹ãããã¨èªä½ãã£ãã«ãªã*1ã®ã§ãä¹³æ°æ¥æ°ãä»ãã¦ã¾ããã§ããã
ä»åã¯ãã¾ãã¾å¶ç¶ãããã°ã©ãã³ã°çæ¾éã®ããã°ãè¦ã¦ããã®ã§ãã¼ã³ã¨ãã¾ããã
ããã°ã©ãã³ã°çæ¾éã®ä¸ã®äººããããã¨ããããã¾ããï¼
*1:ä¸åº¦è¨å®ããã¨ãåºæ¬æ¾ç½®ã§åé¡ãªã