ox3apiclient.

Ŭ¶óÀ̾ðÆ® - OpenX Enterprise API¿¡ ¿¬°á
Áö±Ý ´Ù¿î·Îµå

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

±¤°í

  • Rating:
  • ƯÇã:
  • Other/Proprietary Li...
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Tony Edwards
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • https://github.com/tnydwrds/

ox3apiclient. ű×


ox3apiclient. ¼³¸í

Ox3Apiclient´Â OpenX Enterprise API¿¡ ¿¬°áÇÏ´Â µ¥ µµ¿òÀ̵Ǵ ÀÛÀº Ŭ·¡½ºÀÔ´Ï´Ù. OAUTH2¸¦ »ç¿ëÇÏ´Â µ¿¾È HTTPLIB2°¡ ¸¸µç Çì´õ¿Í °ü·ÃÇÏ¿© HTTPLIB2¸¦ Àü¼ÛÀ¸·Î »ç¿ëÇÏÁö ¾Ê½À´Ï´Ù. ´ë½Å HTTP Àü¼ÛÀ¸·Î URLLIB2¸¦ »ç¿ëÇÕ´Ï´Ù. ÇöÀç Python 2.4 - 2.7À» Áö¿øÇÕ´Ï´Ù. Future.basic »ç¿ë·®À» Á¦°øÇÕ´Ï´Ù. OX3APICLIENTOX = OX3APICLIENTOX.CLIENT_FROM_FILE ()À» °¡Á®¿É´Ï´Ù. ·Î±×¿Â () Account_IDS = OX.GET ( '/ A / °èÁ¤ ') Order = {'Status ':'Active ','Name ':'OX3ApicLient °´Ã¼ »ý¼º Å×½ºÆ® ','Account_id ': Account_ids ,'start_date ':'2012-08-2200:00 : 00 '} new_order = ox.post ('/ a / order ', data = ¼ø¼­) ox.delete ('/ a / order / % s '% new_order ) pypi¿¡¼­ installationinstall PIP PIP ¼³Ä¡ OX3APICLIENTTHIS´Â OAUTH2 Á¾¼Ó¼ºÀ» ¼³Ä¡ÇؾßÇÏÁö¸¸ ÇÊ¿äÇÑ °æ¿ì ¼öµ¿À¸·Î ¼³Ä¡ÇÒ ¼ö ÀÖ½À´Ï´Ù. PIP Python 2.4 ¹× 2.5 Áö¿øÀÌ SimpleJsonÀÌ ÇÊ¿äÇÏ´Ù´Â oauth2note¸¦ ¼³Ä¡ÇÕ´Ï´Ù. Python 2.4¸¦À§ÇÑ SimpleJSON 2.1.0À» Ưº°È÷ ÇÊ¿ä·ÎÇÕ´Ï´Ù. ÀÌ ¹öÀüÀ» ´ÙÀ½°ú °°ÀÌ ¼³Ä¡ÇÒ ¼ö ÀÖ½À´Ï´Ù. PIP ¼³Ä¡ SimpleJSON == 2.1.0AuthenticationÀº ±ÇÀå ÀÎÁõ ¹æ¹ýÀº ox3apiclient.client_from_fileÀ» »ç¿ëÇÏ´Â °ÍÀÔ´Ï´Ù. ±âº»ÀûÀ¸·Î ÇöÀç ÇöÀç µð·ºÅ丮¿¡¼­ .ox3rc¶ó´Â ÆÄÀÏÀ» ãÀ» ¼ö ÀÖÁö¸¸ file_path ¸Å°³ º¯¼ö¸¦ ÁöÁ¤ÇÏ¿© µ¤¾î ¾µ ¼ö ÀÖ½À´Ï´Ù. ÆÄÀÏÀº ´ÙÀ½ Çü½ÄÀ¸·ÎµÇ¾î¾ßÇÕ´Ï´Ù. : http://custom_sso.uidomain.com/api/index/initiate.prod]email : you@example.compassword : password123domain : uidomain_realm : uidomain_realmconsumer_key : 1fc5c9ae ... consumer_secret : 7c664d68 ... ox3apiclient.client_from_fileÀ» »ç¿ëÇÕ´Ï´Ù ±âº»ÀûÀ¸·Î ù ¹ø° env´Â env ¸Å°³ º¯¼ö¸¦ ¼³Á¤ÇÏ¿© µ¤¾î ¾µ ¼ö ÀÖ½À´Ï´Ù. À̸ÞÀÏ ¹× ¾ÏÈ£°¡ .ox3rc¿¡ ¼³Á¤µÈ °æ¿ì ·Î±×¿Â ()¿¡ ´ëÇÑ È£ÃâÀ» °£´ÜÈ÷ ¿¬°è ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¶Ç´Â code.email = 'you@example.com'password ='password123'domain = 'Uidomain.com¿¡¼­ ¸ðµç °ÍÀ» ¼³Á¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. 'realm ='uidomain_realm'consumer_key = '1fc5c9ae ...'scrosymer_secret = '7c664d68 ...'ox = ox3apiclient.client (À̸ÞÀÏ = ÀüÀÚ ¸ÞÀÏ, password = password, domain = domain, realm = realm, consumer_key = consumer_key, consumer_secret = consumer_secret) Ox.Logon (À̸ÞÀÏ, ºñ¹Ð ¹øÈ£) Á¦Ç° ȨÆäÀÌÁö


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