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.3.tar.gz (6.1 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page