Skip to main content

使用 云片 API 发送短信的django扩展

使用

YUNPIAN = {
    'APIKEY': apikey,
    'DEFAULT_SIGN': default_sign,
}

from django_yunpin import YunPian

yunpian = YunPian()

发送短信

yunpian.send(phones, content, sign=None)

phones可以传单个手机号或者手机号列表,分别调用单条发送接口和批量发送接口

配置项

YUNPIAN.APIKEY

apikey

YUNPIAN.DEFAULT_SIGN

默认签名, 例如: 招商银行, 不包含【】

Metadata

Release files for django-yunpian 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-yunpian 0.0.1
File Size Uploaded
django-yunpian-0.0.1.tar.gz 2.2 kB Details

Release files / django-yunpian-0.0.1.tar.gz

Download URL django-yunpian-0.0.1.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b5ecca04ec3b11780100c248b7214a3b89f986c5231ff51fa2ff57c5c3eaf1e2
BLAKE2b-256 checksum
How to use checksums
8482f44d723d34de1dabdf35fd7b4a215d00ab839ad26c796ccdae58f58d1f1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.6

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page