9æã®é ã«ãTumblr1 API v1ã®æä¾ãçµããããã¼ã·ãã¯èªè¨¼ã使ããªããªã£ãã ãã®ãããä»ã¾ã§ãdownloadãã¦ããç»åãã¾ã¨ãã¦ãTumblrã«æããã®ã«ä½¿ã£ã¦ãããã¹ã¯ãªãããAPI v2ã«å¯¾å¿ãããå¿ è¦ãåºã¦ããã æ©éããã®ãããã§ãã¢ããªãç»é²ããconsumer keyã¨consumer secretãåå¾ã ããã使ã£ã¦ãaccess token keyã¨access_token secretãTwitterã¨åãããã«ãPEARã®HTTP/OAuthã§åå¾ãã¦ãTwiterã¨åãããã«ã¹ã¯ãªããã®ä¸ã«ç´æ¸ããã¦ãæ稿ãããã¨ãã¦ããã®ã ãã©ãããã¹ãã¯åºæ¥ããã©ãç»åãæ稿ããã¨ä½æ ã401ãè¿ãã ããï¼ãã¨ãããããã©ã¦ã¶ã§è¡¨ç¤ºãããããã«ããã¨ãåãã«è¡ããã³ã«access token keyã¨access_token secretãéãã 1ã»ãã·ã§
以åããOAuthã使ã£ã¦PHPããTwitterã¸æ稿ãã ãã¨ãã§ãTwitterã®OAuthãçµç±ãã¦æ稿ããPHPããã°ã©ã ãæ¸ãã¾ããããTumblrãOAuthã«å¯¾å¿ããã¨ãããã¨ãªã®ã§ãOAuthçµç±ã§Tumblrä¸ã®æ å ±ãåå¾ããããæ稿ããPHPã®ã¹ã¯ãªãããæ¸ãã¦ã¿ã¾ããã ä¸å¿ãæçµç³»ã¯botã¨ãã¦ãåãããããã«ãªãã®ã§ãããTwitterã¨éãã¢ã¯ã»ã¹ãã¼ã¯ã³ãæåã§åå¾ããå¿ è¦ãããï¼xAuthã«å¯¾å¿ãã¦ãããããªã®ã§ãç³è«ãããã°ãããªãã¨ãç¡ãã¨æãã¾ããï¼ã®ã§ãWebãµã¤ãä¸ã«ããã°ã©ã ã®é ç½®ã¨å®è¡ãã§ããç°å¢ãå¿ è¦ã«ãªãã¾ãã ãªããOAuthçµç±ã§ã®APIæä½ã¯åååæ§ã«PEARã®HTTP_OAuth ã使ã£ã¦ãã¾ãã 使ãæ¹ã®è©³ç´°ã¯ãåã¨ã³ããªã«æ¸ãã¦ã¾ãã®ã§ããã¡ãããããã¦åç §ãã¦ãã ããã Twitterã®æã¨åæ§ã«ã¢ããªã±ã¼ã·ã§ã³ã®ç»é²ãå¿ è¦
ããã«ã¡ã¯ããããã¾ã§ãã ä»åã¯multipart/form-dataã§ã®ã¢ãããã¼ãã§ãã multipart/form-dataã£ã¦ä½ãã£ã¦ããã¨ãhtmlã®formã§ç»åãã¡ã¤ã«ã¨ãã®ãã¤ããªãã¡ã¤ã«ãã¢ãããã¼ãããå ´åã®å½¢å¼ã§ãã ãããã«ãä»åAS3ã§ä½ãã®ã¨ãããªãhtmlãã©ã¼ã ã®ãµã³ãã«ã¯ãããªæãã«ãªãã¾ãã <html> <head> </head> <body> <form method="post" action="submit.php" enctype="multipart/form-data"> <p>username: <input name="username" value="" /></p> <p>image: <input name="myimage" type="file" /></p> <p><input type="submit" /></p>
PHP + JavaScript 㧠Tumblr ã® Twitter äºæ API ãå©ã㦠Dashboard ãªã¼ããä½ã£ã¦ã¿ãã ã¯ãããã«ã¡ã¯ï¼ ä»å㯠PHP + JavaScript (jQuery) 㧠Tumblr ã® Dashboard ãªã¼ããä½ã£ã¦ã¿ã¾ããã R&D ã¡ã³ãã¼ãã¯ãªããã³ã°ãã¦ããè¨äºã社å ã®ã°ã«ã¼ãã¦ã§ã¢ã«æ²ç¤ºãã¦ã¿ãããã¨æã£ã¦ããã®ã§ããããæ軽ã«ããã·ã¥ãã¼ããå ¬éãããã¹ãç¡ãã£ãã®ã§èªå㧠Twitter äºæ API ã使ã£ã¦å®è£ ãã¦ã¿ã¾ããã ã㢠ãã£ã¬ã¯ããªæ§é ã¯ãããªæãã index.html: æ¬ä½ proxy.php: JSON åå¾ç¨ lib/: ã©ã¤ãã©ãª colorbox/ JSON åå¾ç¨ã® PHP ã®ã³ã¼ã (proxy.php) ã¯ãããªæãã <?php require_once "HTTP/Request.
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}