Sailthru-Python-Client.

Sailthru API ¿ë Python Ŭ¶óÀ̾ðÆ®
Áö±Ý ´Ù¿î·Îµå

Sailthru-Python-Client. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • MIT/X Consortium Lic...
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Prajwal Tuladhar
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • https://github.com/sailthru/

Sailthru-Python-Client. ű×


Sailthru-Python-Client. ¼³¸í

Sailthru-Python-Client´Â ¿äûÀ» ±â¹ÝÀ¸·Î Sailthru API¿¡ ´ëÇÑ ÆÄÀ̽㠹ÙÀεùÀÔ´Ï´Ù.`json` formate.testested¿¡¼­ 'python 2.7.x'·Î ¿äûÇÒ °ÍÀÔ´Ï´Ù. .x) PIP ¼³Ä¡ git + https : //github.com/sailthru/sailthru-python-client.git####sailthru-client### ·¯´× Å×½ºÆ® NoSetests -vsimple ¿¹Á¦ 'pythonfrom sailthru.sailthru_client °¡Á® ¿À±â Sailthruclientfrom sailthru. sailthru_response sailthruresponseponsherfrom sailthru.sailthru_Error °¡Á® ¿À±â sailthruclienterrorapi_key = '*******'******* 'sailthru_client = sailthruclient (api_key, api_secret) ½Ãµµ : response = sailthru_client.api_get ( "À̸ÞÀÏ", { "À̸ÞÀÏ": "praj@sailthru.com"}) response.is_ok () : body = response.get_body () Àμ⠺»¹® Elruct : error = response.get_error () Àμâ "¿À·ù :"+ error.get_message () Àμâ "»óÅ ÄÚµå :"+ STR (response.get_status_code ()) Print "¿À·ù ÄÚµå :"+ STR (error.get_error_code ()) SailThruclientError¸¦ Á¦¿ÜÇÑ E : # ÇÚµé ¿¹¿Ü Àμâ "e Xception "Print E ''### POST Request ''PythonRequest_Data = { 'À̸ÞÀÏ': 'praj@sailthru.com', 'È®ÀεÊ': 1, 'vars': { 'À̸§': 'prajwal tuladhar' 'jackson heights', 'zip': 11372, 'state': 'ny'}}, 'Twitter': 'infynyxx'} ÀÀ´ä = sc.api_post ( 'À̸ÞÀÏ', request_data )````### get request 'pythonrequest_data = {'À̸ÞÀÏ ': 'praj@api.com'} sc.api_get ( 'À̸ÞÀÏ', request_data)```### »èÁ¦ ¿äû ¸¸µé±â ' ``pythonrequest_data = { 'ÅÛÇø´': 'my-unused template'} ÀÀ´ä = sc.api_delete ( 'template', request_data)```### postbacks``python # postbacksVerify_Params = { 'µ¿ÀÛ'ÀÎÁõÀ» À§ÇØ python # : 'È®ÀÎ', 'À̸ÞÀÏ': 'praj@sailthru.com', 'te8ez3-lmosnagaa', 'sig': 'sig': 'sig': 'sig _signature'} is_vified_postback = sefertrhu_client.recieve_verify_post.recieve_verify_post (verify_params) ### optout postbacksoptout_params ÀÎÁõ = { 'Action': 'È®ÀÎ', 'À̸ÞÀÏ': 'praj@sailthru.com', 'sig': 'greature_signature'} is_optout_postback = sailtrhu_client.recieve_opt out_post (optout__params) ### Hordbounce PostbackshardBoSis_Params = { 'µ¿ÀÛ': 'Hardbounce', 'Email': 'praj@sailthru.com :'sig ':'greature 'signature 'is_hardbounce_postback = sailtrhu_client.recieve_hardbounce_post (hardbounce_params)`` `### ´ÙÀ̳ªÆ® ¿äû``ÆÄÀ̽ã # °¡Á® ¿À±â collresponse = sailthru_client.api_post ( "ÀÛ¾÷", { "ÀÛ¾÷": "°¡Á® ¿À±â", "ÆÄÀÏ": "file_location", "list": "python-list" }, )```Á¦Ç°ÀÇ È¨ÆäÀÌÁö


Sailthru-Python-Client. °ü·Ã ¼ÒÇÁÆ®¿þ¾î

ÅÒºí·¯

ÀÌ Ã¥°¥ÇÇ ¾Öµå¿ÂÀ» Firefox¿¡ Ãß°¡Çϸé Tumblr À¥ »çÀÌÆ®¿¡ ½Å¼ÓÇÏ°Ô ¾×¼¼½º ÇÒ ¼ö ÀÖ½À´Ï´Ù. ...

52

´Ù¿î·Îµå