Skip to main content

Django extension for YunPian API

Project description

使用 云片 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

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

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

django-yunpian-0.0.1.tar.gz (2.2 kB view details)

Uploaded Source

File details

Details for the file django-yunpian-0.0.1.tar.gz.

File metadata

  • Download URL: django-yunpian-0.0.1.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for django-yunpian-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b5ecca04ec3b11780100c248b7214a3b89f986c5231ff51fa2ff57c5c3eaf1e2
MD5 e4dada8376799df9a5321487a14f3e8a
BLAKE2b-256 8482f44d723d34de1dabdf35fd7b4a215d00ab839ad26c796ccdae58f58d1f1d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page