Pycascade.

ij½ºÄÉÀ̵å, Yahoo!ÀÇ ÆÄÀ̽ã Ŭ¶óÀ̾ðÆ® ¸ÞÀÏ API.
Áö±Ý ´Ù¿î·Îµå

Pycascade. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • BSD License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Peter Griess
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://github.com/pgriess/

Pycascade. ű×


Pycascade. ¼³¸í

ij½ºÄÉÀ̵å, Yahoo!ÀÇ ÆÄÀ̽ã Ŭ¶óÀ̾ðÆ® ¸ÞÀÏ API. Pycascade´Â ij½ºÄÉÀ̵å Ŭ¶óÀ̾ðÆ®ÀÇ ÆÄÀ̽㠱¸ÇöÀÔ´Ï´Ù. ±ÇÇÑÀ» À§ÇØ OAuth¸¦ »ç¿ëÇÕ´Ï´Ù. PycascadeÀÇ ÁÖ¿ä »ç¿ëÀº ij½ºÄÉÀ̵å Ŭ¶óÀ̾ðÆ® ¶óÀ̺귯¸®·Î¼­ÀÇ ±âº» »ç¿ëÀÔ´Ï´Ù. À̸¦ »ç¿ëÇÏ·Á¸é Çϳª´Â JSON11CLIENT ÀνºÅϽº¸¦ ±¸ÃàÇÏ°í call () ¸Þ¼­µå¸¦ È£ÃâÇÕ´Ï´Ù. Pycascade°¡ Á¦°øÇÏ´Â API´Â ÆÄÀ̽ã ÇÁ¸®¹ÌƼºê¸¦ ±â¹ÝÀ¸·ÎÇÕ´Ï´Ù. ¿ÍÀ̾ ÅëÇØ Àü´ÞµÇ´Â ¸ðµç JSON µ¥ÀÌÅÍ À¯ÇüÀº ÆÄÀ̽ã ÇÁ¸®¹ÌƼºê·Î Pycascade¸¦ »ç¿ëÇؾßÇÕ´Ï´Ù. ¸¶Âù°¡Áö·Î ¼­¹ö¿¡¼­ µ¹¾Æ ¿À´Â ¸ðµç JSON µ¥ÀÌÅÍ À¯ÇüÀº Pycascade Client ApplicationÀ¸·Î µÇµ¹¸®±â Àü¿¡ ÆÄÀ̽ã ÇÁ¸®¹ÌƼºê·Î Á÷·ÄÈ­µË´Ï´Ù. °£´ÜÇÑ ¿¹Á¦ ´ÙÀ½ ÄÚµå ½º ´ÏÆêÀº JSON11Client¸¦ ±¸¼ºÇÑ ´ÙÀ½ Æú´õ ¸ñ·ÏÀ» ÀμâÇÏ´Â µ¥ »ç¿ëÇÕ´Ï´Ù. mailbox.oAconsumer = oauth.oauthconsumer (...) oatoken = oauth.oauthtoken (...) jc = json11client (OAconsumer, oatoken) result = jc.call ( 'listfolfers', params = ) °á°úÀûÀ¸·Î : F¿¡ Àμâ f ¿©±â¿¡¼­´Â ¿©±â¿¡¼­´Â ¿äû ÅäÅ«ÀÌ ¾Æ´Ñ ¾×¼¼½º ÅäÅ«À̾î¾ßÇÕ´Ï´Ù. ¾×¼¼½º ÅäÅ«ÀÌ ºÎ½ÇÀ̸é Pycascade ¶óÀ̺귯¸®°¡ »õ·Î °íħÀ» ½ÃµµÇÕ´Ï´Ù. Pycascade ¶óÀ̺귯¸®´Â ij½ºÄÉÀ̵å OAuth ±¸Çö°ú »óÈ£ ÀÛ¿ëÇϱâ À§ÇØ Ä³½ºÄÉÀ̵å OAuth ±¸Çö°ú »óÈ£ ÀÛ¿ëÇϱâ À§ÇØ »ç¿ëÇϱ⠽¬¿î ³ôÀº ¼öÁØÀÇ ±â´ÉÀ» Á¦°øÇÕ´Ï´Ù. ´ÙÀ½°ú °°Àº metthods ¸ñ·ÏÀÌ °è´Ü½Ä ¸ðµâ¿¡ ÀÖ½À´Ï´Ù. * oauth_get_request_token () * oauth_get_access_token () * oauth_get_access_token () () ¶ÇÇÑ Äõ¸® ¹®ÀÚ¿­°úÀÇ OAuth ÅäÅ«À» Á÷·ÄÈ­ÇÏ´Â ¹æ¹ýÀ» (de-)¿¡ Á¦°øÇÕ´Ï´Ù. ÀÌ·¯ÇÑ Äõ¸® ¹®ÀÚ¿­Àº oauth.oauthtoken.from_string ()¿¡¼­ »ý¼º µÈ °Í°ú ȣȯµÇÁö¸¸ ÅäÅ« »õ·Î °íħÀ» Çã¿ëÇÏ´Â Ãß°¡ µ¥ÀÌÅÍ°¡ Æ÷ÇԵ˴ϴÙ. ½©¿¡¼­ Á÷Á¢ È£ÃâµË´Ï´Ù. ÀÌ´Â ´Ù¸¥ ½ºÅ©¸³Æ®¿¡ ´ëÇÑ Ä³½ºÄÉÀ̵å Ŭ¶óÀ̾ðÆ® ±â´ÉÀ» º¼Æ®Çϰųª ij½ºÄÉÀÌµå ¼­ºñ½ºÀÇ ´ëÈ­½Ä Å×½ºÆ® / Ž»öÀ» ¼öÇàÇÏ´Â µ¥ À¯¿ë ÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀÌ°ÍÀ» »ç¿ëÇÏ´Â °¡Àå °ÅÇ°ÀÌÀÖ´Â ºÎºÐÀº OAuth ±¸¼ºÀ» ¿Ã¹Ù¸£°Ô ¾ò´Â °ÍÀÔ´Ï´Ù. OAuth Consumer Å°¿Í ºñ¹ÐÀ» ³ªÅ¸³»´Â -k ¹× -s ¿É¼ÇÀ» °¢°¢ ÁöÁ¤ÇÏ´Â µ¥ ÇÊ¿äÇÑ ¿É¼ÇÀ» ÁöÁ¤ÇؾßÇÕ´Ï´Ù. ±× ¿Ü¿¡µµ, »ç¿ëÇÒ ¼öÀÖ´Â OAuth ¾×¼¼½º ÅäÅ«À» ÁöÁ¤ÇؾßÇϸç, µÎ °¡Áö ¹æ¹ý Áß Çϳª·Î ¼öÇà ÇÒ ¼ö ÀÖ½À´Ï´Ù. -a ¿É¼ÇÀº cascade.oauth_token_to_query_string ()À» ÅëÇØ Äõ¸® ¹®ÀÚ¿­·Î ÀÎÄÚµù µÈ ÅäÅ«À» ÃëÇÕ´Ï´Ù. ¶Ç´Â -Out-access-token-key ¹× -out-access-token-secret ¿É¼Ç Áß ÇϳªÀÔ´Ï´Ù. -a ¿É¼ÇÀ» »ç¿ëÇÏ´Â ÁÖ¿ä ÀÌÁ¡Àº ÅäÅ« Äõ¸® ¹®ÀÚ¿­À» »õ·Î °íħ ÇÒ ¼öÀÖ´Â Á¤º¸¸¦ Æ÷ÇÔ ÇÒ ¼ö ÀÖ´Ù´Â °ÍÀÔ´Ï´Ù. ´ú ÀÚ¼¼. À¯´Ö Å×½ºÆ® (¾Æ·¡)¸¦ ½ÇÇàÇÏ°í cascade_unittest_settings.py.as¿¡¼­ oauth_access_token °ªÀ» °Ë»öÇÏ¿© Äõ¸®·Î ÀÎÄÚµù µÈ ¾×¼¼½º ÅäÅ«À» CASCADE_UNITTEST_SETTINGS.PY.AS·ÎºÎÅÍ °Ë»ö ÇÒ ¼ö ÀÖ½À´Ï´Ù. % ECHO ""| ÆÄÀ̽ã ÀüÈ­ ./cascade.py \ -k 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'\ -s 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'\ -a 'xoauth_yahoo_guid = UDLAKKVZB3N4BVS7CMIDBIDRYIoauth_token_secret = 3800c4b46be3eceb26938eb3af0198c031661c80xoauth_authorization_expires_on = 2147483650oauth_session_handle = ANCIPkvlhRw8XL_VsZpCU88oUzYLm2eZywDxmGID3d28CX4ArOd7tF0YgHJCqDY0H39t6VeuobybSL8kVW1GCX0XedzVoPe2R8cl5Bw_uTsEHeKP.qnEMQz.qO9RWzdvFS.qzGIoaX3w.wLZUDAckrHOT2jSdDab72iXURTkuFaDjAdO.SIa6qJLRPQJuD_4fMgL4h1553y9uuz_revFBB8iqd8VQDWJKh1mr.p41ovaMDp90VR4Bpnap1xfQ7yNT.x9psZrtcS32MQcekaz.L3Ax6bKhBRc__JqeU5LIA0HONuM0yTk01vtb.Wcu0U7_jTRH3VAeyymKENhIlcsx3gUmJ0h5OzeAHvH16BEEl4SHS4nff2POJqZ7RSbrowkrWtoXYLCb5epjFoHXlk45c2xKbEpUyNYKGoLjrTLloTlfv90X6uRt3VctcsLEw8e5_kHUOfhcM7aUqMGRcZdihoC5ts6I0wxmVkGzGqSSdRIhYnZXcvB5dj9On9HtXBoQ .xf2kqt4zerw81i6deguu4i6hoq.pey_qblrvwno8ffyj.qrhuvhk2y2brczkdhnnslxxsojvjfko62iobxgjo7felxouesc3tkn0n7ic_aaxdqgo.x2v8mkozkh66rhsph06v. VURTLMG7oADaDsfZSe6CmnkrcOU7DN.AivzOV16Yu1wkXjSfABfSovE.QcRG6QB3fckypZ7PBfbRhOwboo_txK0a6A6WhMKA2EGnRBhCj68UEW7aLIEac2wJXWkErEhhcU2Z75.62KYjZlbAUyBUQ - xoauth_expires_on = 1266426257 '\ ListFolders { "°á°ú": { "Æú´õ": , "numberOflOlders": 5}, "¿À·ù": null} cascade.py È£ÃâÀÇ Á¾·á »óÅ´ ÅëÈ­°¡ ¼º°øÇϸé 0ÀÔ´Ï´Ù. ±×·¸Áö ¾ÊÀ¸¸é 0ÀÌ ¾Æ´Õ´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ ÆÄÀ̽ã


Pycascade. °ü·Ã ¼ÒÇÁÆ®¿þ¾î

¿±¼­

PythonÀÇ °£´ÜÇÑ API´Â ¿µ±¹ÀÇ ÁÖ¼Ò ¹× ¿ìÆí ¹øÈ£¸¦À§ÇÑ ÀαâÀÖ´Â À¥ ¼­ºñ½º ÀÎ PostCoder¿Í ÇÔ²² ÀÛµ¿ÇÕ´Ï´Ù. ...

150

´Ù¿î·Îµå

¼Û¾ÆÁö

ÆÐÅ°Áö´Â ÆÄÀ̽ã°ú ½Ã¿Â¿¡¼­ ¹ÙÀ̳ʸ®, redblack ¹× avl-trees¸¦ Á¦°øÇÕ´Ï´Ù. ...

148

´Ù¿î·Îµå