Sending verification codes through Aliyun SMS service.
Project description
aliyun_sms_code
Documentation
Send mobile verfication code using Aliyun SMS service.
First make sure you get your access key, and set your access key id and access key secret as environment variables ALIBABA_CLOUD_ACCESS_KEY_ID and ALIBABA_CLOUD_ACCESS_KEY_SECRET.
See [创建AccessKey][https://help.aliyun.com/zh/ram/user-guide/create-an-accesskey-pair]
Then activate Aliyun short message service(sms), submit your sign and template sms, and wait for audit results. After approval, sign name and template code will be given to you.
In the same way, set sign name and template code as environment variables SIGN_NAME and TEMPLATE_CODE.
See [短信服务][https://www.aliyun.com/product/sms?spm=5176.28055625.J_4VYgf18xNlTAyFFbOuOQe.1401.3a0d154aqByyEX&scm=20140722.X_data-954b757d33204a0b9538._.V_1&accounttraceid=efef673de6404a5bb9347b359c468a2fvhfe]
Install
Run
pip install aliyun_sms_code
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aliyun_sms_code-0.0.2.tar.gz
(3.8 kB
view details)
File details
Details for the file aliyun_sms_code-0.0.2.tar.gz
.
File metadata
- Download URL: aliyun_sms_code-0.0.2.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0fc6d4b683c723ad3b13d6ee8c6a2cc04f31c0935d460deb9248c152a0ae14a |
|
MD5 | 656c2da197a9c1496d2020ccf14864a7 |
|
BLAKE2b-256 | 7f7a22f37af7a39bfcafb0775e2aadf0d578e7097f349ff23163191b11774d6b |