Sailthru-بيثون العميل

عميل بيثون ل API Sailthru
التحميل الان

Sailthru-بيثون العميل الترتيب والملخص

الإعلانات

  • Rating:
  • رخصة:
  • MIT/X Consortium Lic...
  • السعر:
  • FREE
  • اسم الناشر:
  • Prajwal Tuladhar
  • موقع ويب الناشر:
  • https://github.com/sailthru/

Sailthru-بيثون العميل العلامات


Sailthru-بيثون العميل وصف

Sailthru-Python-Client هو ملزم بيثون ل API Sailthru بناء على طلبات Sailthru على أساس الطلبات. سيقوم بطلب الطلب في "تنسيق JSON ". .X) pip تثبيت git + https: //github.com/sailthru/sailthru-plientthru-client.git#egg=sailthru-client### الاختبارات الجارية nosetests -vsimple amousles`` pythonfrom sailthru.sailthru_client استيراد sailthruclientfrom sailthru. Sailthru_Response استيراد SailhruesPonseRror Forrorrorrorfrorfrorpron.sailthru_error استيراد Sailthruclienterrora_key = '*******' api_secret = '*******' sailthru_client = sailthruclient (api_key، api_secret) try: استجابة = sailthru_client.api_get ("البريد الإلكتروني"، { "البريد الإلكتروني": "priach@sailthru.com"}) إذا استجابة.is_ok (): Body = Response.get_body () طباعة الجسم آخر: خطأ = Response.get_error () خطأ "خطأ" "+ Error.get_message () طباعة "رمز الحالة:" + str (response.get_status_code () "رمز الخطأ:" رمز الخطأ: "+ str (خطأ Xcepution "Print E```` ### قم بإجراء طلب النشر" `pythonrequest_data = {'البريد الإلكتروني': 'priach@sailthru.com'، 'التحقق من": 1، "Vars": {' الاسم ':' prajwal tuladhar ' ، عنوان ': {' City ':' jackson heights '،' zip ': 11372،' state ':' ny '}}،' Twitter ':' infynyxx '} استجابة = sc.api_post (' البريد الإلكتروني '، request_data `` `` `### صنع الحصول على طلب طلب `` pythonrequest_data = {'البريد الإلكتروني':'praj@sailthru.com'.resesponse = sc.api_get ('البريد الإلكتروني'، request_data)` `` ### إجراء حذف طلب " `` pythonrequest_data = {'template': استجابة "القالب غير المستخدمة"} = sc.api_delete ('قالب'، طلب `` `### التعامل مع postbacks`````` python # للمصادقة التحقق من postbacksverify_params = {'action' : "التحقق من"، "البريد الإلكتروني"، 'البريد الإلكتروني': 'priach@sailthru.com'، 'send_id': 'send_id': 'te8ez3-lmosnagaa'، 'sig': 'gended_signature'} is_veried_postback = sailtrhu_client.reciefe_verify_post (verify_params) ### مصادقة postbacksoptoutout_params = {'action': "التحقق من"، "البريد الإلكتروني": 'priach@sailthru.com'، 'sig': 'gened_signature'} is_optout_postback = sailtrhu_client.reciefe_opt out_post (optout__params) ### الثابت postbackshardbop_params = {'action': "HardePound"، "البريد الإلكتروني": 'البريد الإلكتروني': 'priach@sailthru.com'، 'sig': 'osted_signature'} is_hardbopce_postback = sailtrhu_client.reciefe_hardbop_post (hardbound_params) `` `` `` `` `` `` `` `` `` `` `` `` `` `### طلب متعدد الأقراصات``` python # استيراد وظيفة API CallResponse = sailthru_client.api_post (" الوظيفة "، {job": "استيراد"، "ملف": "file_location"، قائمة ":" Python- قائمة " }، ) `الصفحة الرئيسية للمنتج


Sailthru-بيثون العميل برامج ذات صلة

نعرفكم

مع الوظيفة الإضافية المرجعية لهذه المرجعية ل Firefox، ستتمكن من الوصول بسرعة إلى موقع Tumblr ...

52

تحميل