Skip to main content

Python service for convenient work with uCaller API

Project description

pyucallerapi

Python service for convenient work with uCaller API

Requirements

  • Python 3.5 or higher.

Install

pip install pyucallerapi

Documentation uCaller api: DOC

Example

from pyucallerapi import APIUCaller

# class initialization
api = APIUCaller(
    service_id=25742,
    key="" # string == 32 characters
)

# receive a list of the organization's couriers
call_response = api.init_call(
    phone="9999999999",
    code="6123"
)

if call_response.get("status", False):
    print("Good job comrade!", call_response.get("ucaller_id"))
else:
    # Display error message
    print(call_response.get("error", None))  

    # Display error code and Cyrillic decryption
    print(call_response.get("code"), api.check_error_code(call_response.get("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

pyucallerapi-0.0.3.tar.gz (8.8 kB view hashes)

Uploaded source

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