Telstra Messaging SDK - Python Library
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Telstra_Messaging
docs
test
.gitignore
.travis.yml
LICENSE
README.md
requirements.txt
setup.py
test-requirements.txt
tox.ini

README.md

Telstra_Messaging

  • API version: 2.2.9
  • Package version: 1.0.6

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

pip install git+https://github.com/Telstra/MessagingAPI-SDK-python.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/Telstra/MessagingAPI-SDK-python.git)

import Telstra_Messaging 

Setuptools

Install via Setuptools.

python setup.py install --user
import Telstra_Messaging

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import Telstra_Messaging
from Telstra_Messaging.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = Telstra_Messaging.AuthenticationApi(Telstra_Messaging.ApiClient(configuration))
client_id = 'client_id_example' # str | 
client_secret = 'client_secret_example' # str | 
grant_type = 'client_credentials' # str |  (default to 'client_credentials')

try:
    # Generate OAuth2 token
    api_response = api_instance.auth_token(client_id, client_secret, grant_type)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthenticationApi->auth_token: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://tapi.telstra.com/v2

Class Method HTTP request Description
AuthenticationApi auth_token POST /oauth/token Generate OAuth2 token
MessagingApi get_mms_status GET /messages/mms/{messageid}/status Get MMS Status
MessagingApi get_sms_status GET /messages/sms/{messageId}/status Get SMS Status
MessagingApi retrieve_mms_responses GET /messages/mms Retrieve MMS Responses
MessagingApi retrieve_sms_responses GET /messages/sms Retrieve SMS Responses
MessagingApi send_mms POST /messages/mms Send MMS
MessagingApi send_sms POST /messages/sms Send SMS
ProvisioningApi create_subscription POST /messages/provisioning/subscriptions Create Subscription
ProvisioningApi delete_subscription DELETE /messages/provisioning/subscriptions Delete Subscription
ProvisioningApi get_subscription GET /messages/provisioning/subscriptions Get Subscription

Documentation For Models

Documentation For Authorisation

auth

  • Type: OAuth
  • Flow: application
  • Authorisation URL:
  • Scopes:
  • NSMS: NSMS

Author