Skip to content

Commit

Permalink
1.0.6 SDK release, new and updated responses
Browse files Browse the repository at this point in the history
  • Loading branch information
developersteve committed Aug 10, 2018
1 parent 338dfe3 commit 4dca787
Show file tree
Hide file tree
Showing 29 changed files with 417 additions and 285 deletions.
64 changes: 64 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
.hypothesis/
venv/
.python-version

# Translations
*.mo
*.pot

# Django stuff:
*.log

# Sphinx documentation
docs/_build/

# PyBuilder
target/

#Ipython Notebook
.ipynb_checkpoints
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Telstra_Messaging


- API version: 2.2.7
- Package version: 1.0.5
- API version: 2.2.9
- Package version: 1.0.6

## Requirements.

Expand Down Expand Up @@ -110,3 +110,4 @@ Class | Method | HTTP request | Description




6 changes: 4 additions & 2 deletions Telstra_Messaging/__init__.py

Large diffs are not rendered by default.

61 changes: 31 additions & 30 deletions Telstra_Messaging/api/authentication_api.py

Large diffs are not rendered by default.

246 changes: 128 additions & 118 deletions Telstra_Messaging/api/messaging_api.py

Large diffs are not rendered by default.

123 changes: 63 additions & 60 deletions Telstra_Messaging/api/provisioning_api.py

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions Telstra_Messaging/api_client.py

Large diffs are not rendered by default.

19 changes: 4 additions & 15 deletions Telstra_Messaging/configuration.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Telstra_Messaging/models/__init__.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Telstra_Messaging/models/delete_number_request.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Telstra_Messaging/models/get_subscription_response.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Telstra_Messaging/models/inbound_poll_response.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Telstra_Messaging/models/message.py

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions Telstra_Messaging/models/message_sent_response.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Telstra_Messaging/models/mms_content.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Telstra_Messaging/models/o_auth_response.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Telstra_Messaging/models/outbound_poll_response.py

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions Telstra_Messaging/models/provision_number_request.py

Large diffs are not rendered by default.

66 changes: 61 additions & 5 deletions Telstra_Messaging/models/provision_number_response.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Telstra_Messaging/models/send_mms_request.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Telstra_Messaging/models/send_sms_request.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Telstra_Messaging/models/status.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Telstra_Messaging/rest.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/MessageSentResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**messages** | [**list[Message]**](Message.md) | An array of messages. |
**country** | **str** | An array of the countries to which the destination MSISDNs belong. | [optional]
**country** | **list[str]** | An array of the countries to which the destination MSISDNs belong. | [optional]
**message_type** | **str** | This returns whether the message sent was a SMS or MMS. |
**number_segments** | **int** | For SMS messages only, the value indicates the number of 160 character message segments sent. |

Expand Down
12 changes: 8 additions & 4 deletions docs/MessagingApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = Telstra_Messaging.MessagingApi(Telstra_Messaging.ApiClient(configuration))
send_mms_request = Telstra_Messaging.SendMmsRequest() # SendMmsRequest | A JSON or XML payload containing the recipient's phone number and MMS message. The recipient number should be in the format '04xxxxxxxx' where x is a digit.
send_mms_request = Telstra_Messaging.SendMmsRequest() # SendMmsRequest | A JSON or XML payload containing the recipient's phone number and MMS message.
The recipient number should be in the format '04xxxxxxxx' where x is a digit.


try:
Expand All @@ -248,7 +249,8 @@ except ApiException as e:

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**send_mms_request** | [**SendMmsRequest**](SendMmsRequest.md)| A JSON or XML payload containing the recipient's phone number and MMS message. The recipient number should be in the format '04xxxxxxxx' where x is a digit.
**send_mms_request** | [**SendMmsRequest**](SendMmsRequest.md)| A JSON or XML payload containing the recipient's phone number and MMS message.
The recipient number should be in the format '04xxxxxxxx' where x is a digit.
|

### Return type
Expand Down Expand Up @@ -287,7 +289,8 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = Telstra_Messaging.MessagingApi(Telstra_Messaging.ApiClient(configuration))
send_sms_request = Telstra_Messaging.SendSMSRequest() # SendSMSRequest | A JSON or XML payload containing the recipient's phone number and text message. This number can be in international format if preceeded by a '+' or in national format ('04xxxxxxxx') where x is a digit.
send_sms_request = Telstra_Messaging.SendSMSRequest() # SendSMSRequest | A JSON or XML payload containing the recipient's phone number and text message.
This number can be in international format if preceeded by a '+' or in national format ('04xxxxxxxx') where x is a digit.


try:
Expand All @@ -302,7 +305,8 @@ except ApiException as e:

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**send_sms_request** | [**SendSMSRequest**](SendSMSRequest.md)| A JSON or XML payload containing the recipient's phone number and text message. This number can be in international format if preceeded by a '+' or in national format ('04xxxxxxxx') where x is a digit.
**send_sms_request** | [**SendSMSRequest**](SendSMSRequest.md)| A JSON or XML payload containing the recipient's phone number and text message.
This number can be in international format if preceeded by a '+' or in national format ('04xxxxxxxx') where x is a digit.
|

### Return type
Expand Down
2 changes: 1 addition & 1 deletion docs/ProvisionNumberRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**active_days** | **int** | The number of days before for which this number is provisioned. Usually this will be same as the plan you buy. | [optional]
**active_days** | **int** | The number of days before for which this number is provisioned. | [optional]
**notify_url** | **str** | A notification URL that will be POSTed to whenever a new message (e.g. a reply to a message sent) arrives at this destination address. If this is not provided then you can use the Get /sms or /mms API to poll for reply messages. *Please note that the notification URLs and the Get /sms or /mms call are exclusive. If a notification URL has been set then the GET call will not provide any useful information.* | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
2 changes: 2 additions & 0 deletions docs/ProvisionNumberResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**destination_address** | **str** | The mobile phone number that was allocated | [optional]
**description** | **str** | Metadata for provisioned numbers which are valid for more than 5 years | [optional]
**expiry_date** | **float** | Free Trial apps will have a 30-Day Limit for their provisioned number. This is in Unix time format. | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
2 changes: 1 addition & 1 deletion docs/ProvisioningApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Method | HTTP request | Description
Create Subscription

Invoke the provisioning API to get a dedicated mobile number for an account or application.
Invoke the provisioning API to get a dedicated mobile number for an account or application. Note that Free Trial apps will have a 30-Day Limit for their provisioned number. If the Provisioning call is made several times within that 30-Day period, it will return the `expiryDate` in the Unix format and will not add any activeDays until after that `expiryDate`. For paid apps, a provisioned number can be allotted for a maximum of 5 years. If a Provisioning call is made which will result to activeDays > 1830, the response body will indicate that the provisioned number is already valid for more than 5 years.

### Example
```python
Expand Down
8 changes: 4 additions & 4 deletions setup.py

Large diffs are not rendered by default.

0 comments on commit 4dca787

Please sign in to comment.