- API version: 1.0.0
- Package version: 1.0.0
Python 2.7 and 3.4+
pip install git+https://github.com/Telstra/EventDetectionAPI-SDK-python.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/Telstra/EventDetectionAPI-SDK-python.git
)
import Telstra_EventDetection
Install via Setuptools.
python setup.py install --user
import Telstra_EventDetection
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import Telstra_EventDetection
from Telstra_EventDetection.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = Telstra_EventDetection.AuthenticationApi()
client_id = 'client_id_example' # str |
client_secret = 'client_secret_example' # str |
grant_type = 'client_credentials' # str | (default to client_credentials)
try:
# Generate authentication 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)
All URIs are relative to https://tapi.telstra.com
Class | Method | HTTP request | Description |
---|---|---|---|
AuthenticationApi | auth_token | POST /v2/oauth/token | Generate authentication token |
GetSubscriptionApi | get_subscription | POST /v1/eventdetection/events/subscriptions | Get Event Subscriptions |
LongPollApi | longpoll | POST /v1/eventdetection/events/{eventType} | Poll events |
PushNotificationsApi | push_notifications | POST /v1/eventdetection/events/notifications | Push event notifications |
RegistrationApi | register | POST /v1/eventdetection/events | Register |
RegistrationApi | unregister | DELETE /v1/eventdetection/events/{eventType} | Unregister |
- Eventsattr
- GetEventResponse
- GetSubscriptionResponse
- NotificationPayload
- OAuthResponse
- PhoneNumberList
- PollingObj
- PushNotificationObj
- ResisterPhoneNumberList
- ServiceEventsAttr
- SubscriptionObj
- Subscriptionattr
- Test
- UnregisterRequestObj
- Type: OAuth
- Flow: application
- Authorisation URL:
- Scopes:
- v1_eventdetection_simswap: v1_eventdetection_simswap