Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Latest commit

 

History

History
31 lines (23 loc) · 671 Bytes

README.md

File metadata and controls

31 lines (23 loc) · 671 Bytes

Obsolete

This is mirror of Unifonic obsolete Python SDK, kept online for legacy reasons. Nextgen SDK is available at https://github.com/masaar/unifonic_python_sdk/

SMS-Voice-PythonSDK

Installation

Download the source code and then run:

python setup.py install

Example

Here is the example to Use Message API

from otsdc.rest.client import OTSRestClient
from otsdc.url.http_url import HttpOTSUrl

client = OTSRestClient(appSid='yourAppSid')

acct = client.accountResource
(stat,resp) = acct.getBalance()
print(stat)
print(resp)

msg = client.messageResource
(stat,resp) = msg.send('9627xxxxxxx', 'Content Msg')
print(stat)
print(resp)