Giter VIP home page Giter VIP logo

kavenegar-python's Issues

مشکل امنیتی حاد

در مواقعی که به دلیل مشکلات http خطا raise شود مقدار api-key به همراه خطا به کلاینت فرستاده میگردد
except requests.exceptions.RequestException as e: raise HTTPException(e)

Is it possible to set a proxy server for requests?

Despite the new restrictions in Iran, Kaveh Negar company has added the limit of allowed IPs to send SMS.
I wanted to know if it is possible to set a proxy server in this package or if not, when will it be added?

send_sms APIException

Hi there,
I am using kevenegar to send SMS and it raises exception, for no reason!
This is my code:

api = KavenegarAPI('6F64***the-rest-of-my-api-key')
params = {'receptor': '091-the-rest-of-my-phone-number',
          'message': '.وب سرویس پیام کوتاه کاوه نگار'}
response = api.sms_send(params)

And it will raise this error:

raise APIException((u'APIException[%s] %s' % (response['return']['status'],response['return']['message'])).encode('utf-8'))
kavenegar.APIException: b'APIException[426] \xd8\xa7\xd8\xb3\xd8\xaa\xd9\x81\xd8\xa7\xd8\xaf\xd9\x87 \xd8\xa7\xd8\xb2 \xd8\xa7\xdb\x8c\xd9\x86 \xd9\x85\xd8\xaa\xd8\xaf \xd9\x86\xdb\x8c\xd8\xa7\xd8\xb2\xd9\x85\xd9\x86\xd8\xaf \xd8\xb3\xd8\xb1\xd9\x88\xdb\x8c\xd8\xb3 \xd9\xbe\xdb\x8c\xd8\xb4\xd8\xb1\xd9\x81\xd8\xaa\xd9\x87 \xdb\x8c\xd8\xa7 \xd8\xa7\xdb\x8c\xd8\xac\xd8\xa7\xd8\xaf \xd8\xaf\xd8\xb3\xd8\xaa\xd8\xb1\xd8\xb3\xdb\x8c \xd9\x85\xdb\x8c \xd8\xa8\xd8\xa7\xd8\xb4\xd8\xaf'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.