ååï¼ã¢ã¡ããã®AtomAPIãåããªãï¼ã®è¨äºããæ°ã«æãã ã¢ã¯ã»ã¹è§£æè¦ã¦ããã£ã±ãåãããã«å°ã£ã¦ã人ãããã¿ããã ã¨ããããã§ãä¹ ãã¶ãã«èª¿ã¹ç´ããã ååã®ã½ã¼ã¹ã¨éãé¨åãããã¯ã¢ããã ãã£ã±ãWSSEèªè¨¼ããã¤ã³ãã§ãããããããéãã°ãã¨ã¯ãããªãã $nonce = sha1(md5(time())); ã©ã³ãã æåçæã ããä½ã§ãããã¨ã¯æããã©ã $pass_digest = base64_encode(pack('H*', sha1($nonce.$created.strtolower(md5($password))))); ãããå ¨ç¶éã ã£ãã 大æåã«ããããããªãã¦å°æåã«ããã ãã¨ã¯getã§è¨äºæ å ±ãåå¾ãããã®çµæããpostããURLãã¨ã£ã¦è¨äºãæããã¿ããã ä»å使ç¨ããã½ã¼ã¹ã <?php require_once 'cURL.php';
å¹´æ«å¹´å§ãããããæ©ã¾ãã¦ãããAtomAPIã«ã¤ãã¦ã®ã¡ã¢ã ãã®ã¾ã¨ãã ï¼ï¼WSSEèªè¨¼ HTTP 㧠X-WSSE ãããã追å ããã«ã¼ãAtomã¨ã³ããã¤ã³ãã«æããã ã¢ã¡ããã®ã«ã¼ãAtomã¨ã³ããã¤ã³ãã¯ï¼ï¼ï¼ï¼å¹´ï¼æç¾å¨ã¯âã§å¤§ä¸å¤«ã http://atomblog.ameba.jp/servlet/_atom/blog 追å ãããããã¯âã®ãããªæãããã¡ãããâãæãã¦ããã¾ããããªãã X-WSSE: UsernameToken Username="xxxxxxx", PasswordDigest="ZCNaK2jrXr4+zsCaYK/YLUxImZU=", Nonce="Uh95NQlviNpJQR1MmML+zq6pFxE=", Created="2005-01-18T03:20:15Z" Usernameãã»ã»ã»ãã¢ã¡ããã§ãã°ã¤ã³ããã¨ãã®IDã Pass
PHPã®HTTPã¯ã©ã¤ã¢ã³ãã«ã¦ããã°æ稿ã«ãã£ã¬ã³ã¸ãã¦ã¿ãã XML-RPCã®ããã°æ稿ã¯OK(å ¨ã¦ã®ããã°ã§ã¯ãªã)ãªã®ã ããAtomAPIãæ¡ç¨ãã¦ããããã°ã¸ã®æ稿ã§ã¯ã¾ã£ã¦ãã¾ã£ãã ããããããã¢ã¡ããã®èªè¨¼ãçªç ´ããã ã°ã°ãã¦ã¿ãã¨ãä»ã«ããã£ã¬ã³ã¸ãã¦ãã人ãããã®ã ããã»ã¨ãã©ã失æã ã¨ã³ããã¤ã³ãURLãã¤ãã¤ãä¸æã ãããã®æ å ±ããã¨ã«ãããããã¨è©¦ããçµæãWSSEèªè¨¼ã以ä¸ã®å 容ã§ãããã¨ãå¤æã ã»ã¢ã¡ã¼ãWSSEèªè¨¼(ãã¾ãé¢ä¿ãªããããã®é çªã®éåº) 1.Usernameï¼ ã¢ã¡ã¼ãID 2.PasswordDigestï¼ ã¢ã¡ã¼ãIDã«å¯¾å¿ãããã¹ã¯ã¼ãããMD5ã«ããããã·ã¥åããå¤ã¨ Nonce(Base64ã¨ã³ã³ã¼ãå)ã®å¤ã¨ Createdã®å¤ã®æååãé£çµã ãããã®æååãSHA1ã«ããããã·ã¥åããå¤ãBase64ã¨ã³ã³ã¼ãããå¤ 3
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}