Skip to main content

Longleding Push Service SDK

Project description

Longleding Push Service SDK

Supported Python Versions

Python >= 3.6

Installation

longleding-push-service-sdk is available for Linux, macOS, and Windows.

$ pip install longleding-push-service-sdk

Basic Usage

# -*- coding: utf-8 -*-
from sdk import push_service_sdk

push_service_endpoint = "localhost:80"
source_name = "demo"

push_service_sdk.init_service(endpoint=push_service_endpoint, source=source_name)


def send_sms_register_code():
    push_service_sdk.send_sms_register_code("xxxxxxxxxxx", "xxxxxx")


def send_sms_login_code():
    push_service_sdk.send_sms_login_code("xxxxxxxxxxx", "xxxxxx")


def send_sms_change_password_code():
    push_service_sdk.send_sms_change_password_code("xxxxxxxxxxx", "xxxxxx")


def send_email_register_code():
    push_service_sdk.send_email_register_code("xxxxxxxxxxx", "xxxxxx")


def send_email_login_code():
    push_service_sdk.send_email_login_code("xxxxxxxxxxx", "xxxxxx")


def send_email_change_password_code():
    push_service_sdk.send_email_change_password_code("xxxxxxxxxxx", "xxxxxx")



if __name__ == '__main__':
    send_sms_register_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

longleding-push-service-sdk-0.1.2.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

longleding_push_service_sdk-0.1.2-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

Details for the file longleding-push-service-sdk-0.1.2.tar.gz.

File metadata

  • Download URL: longleding-push-service-sdk-0.1.2.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.0

File hashes

Hashes for longleding-push-service-sdk-0.1.2.tar.gz
Algorithm Hash digest
SHA256 942b53747c47c3b067e62141bf88e9e91b86a5ea5f765b33e03d10146f134a81
MD5 26536ff4ae46f4500a8108f977891960
BLAKE2b-256 7647659700725fe857c3ad0f8b073e117ef6733ef438bbe1031f0fdc4f42cc57

See more details on using hashes here.

File details

Details for the file longleding_push_service_sdk-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: longleding_push_service_sdk-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 20.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.0

File hashes

Hashes for longleding_push_service_sdk-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9d1ea530ad4ae9a7587cd74e547370c98c97b4e477f0faa94b7c3e74f5ab7545
MD5 ee8d033a7c6473f75233c3e29daa83f2
BLAKE2b-256 417397b9a4439875063cbca0248cf062421087feaf6b2d14ce9718a5991adbce

See more details on using hashes here.

Supported by

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