kavenegar / kavenegar-python Goto Github PK
View Code? Open in Web Editor NEWKavenegar API Client Writen In Python
Home Page: https://kavenegar.com/rest.html
Kavenegar API Client Writen In Python
Home Page: https://kavenegar.com/rest.html
با سلام
با اپدیت شدن کامیت no need to encode('utf-8' in APIException) در گیت هاب لطفا در سایت pip kavenegar هم پروژه رو آپدیت کنید لطفا
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?
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'
Line 38 in 166701d
در مواقعی که به دلیل مشکلات http خطا raise شود مقدار api-key به همراه خطا به کلاینت فرستاده میگردد
except requests.exceptions.RequestException as e: raise HTTPException(e)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.