Skip to content

Commit 73acb3d

Browse files
SupportSupport
authored andcommitted
New python SDK Generated
1 parent a6cfeee commit 73acb3d

File tree

3 files changed

+0
-160
lines changed

3 files changed

+0
-160
lines changed

clicksend_client/api/sms_api.py

Lines changed: 0 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -936,105 +936,6 @@ def sms_price_post_with_http_info(self, sms_messages, **kwargs): # noqa: E501
936936
_request_timeout=params.get('_request_timeout'),
937937
collection_formats=collection_formats)
938938

939-
def sms_receipt_read_by_message_id_put(self, message_id, **kwargs): # noqa: E501
940-
"""Mark specific delivery receipt as read # noqa: E501
941-
942-
Mark specific delivery receipt as read # noqa: E501
943-
This method makes a synchronous HTTP request by default. To make an
944-
asynchronous HTTP request, please pass async_req=True
945-
>>> thread = api.sms_receipt_read_by_message_id_put(message_id, async_req=True)
946-
>>> result = thread.get()
947-
948-
:param async_req bool
949-
:param str message_id: The message ID you want to mark as read (required)
950-
:return: str
951-
If the method is called asynchronously,
952-
returns the request thread.
953-
"""
954-
kwargs['_return_http_data_only'] = True
955-
if kwargs.get('async_req'):
956-
return self.sms_receipt_read_by_message_id_put_with_http_info(message_id, **kwargs) # noqa: E501
957-
else:
958-
(data) = self.sms_receipt_read_by_message_id_put_with_http_info(message_id, **kwargs) # noqa: E501
959-
return data
960-
961-
def sms_receipt_read_by_message_id_put_with_http_info(self, message_id, **kwargs): # noqa: E501
962-
"""Mark specific delivery receipt as read # noqa: E501
963-
964-
Mark specific delivery receipt as read # noqa: E501
965-
This method makes a synchronous HTTP request by default. To make an
966-
asynchronous HTTP request, please pass async_req=True
967-
>>> thread = api.sms_receipt_read_by_message_id_put_with_http_info(message_id, async_req=True)
968-
>>> result = thread.get()
969-
970-
:param async_req bool
971-
:param str message_id: The message ID you want to mark as read (required)
972-
:return: str
973-
If the method is called asynchronously,
974-
returns the request thread.
975-
"""
976-
977-
all_params = ['message_id'] # noqa: E501
978-
all_params.append('async_req')
979-
all_params.append('_return_http_data_only')
980-
all_params.append('_preload_content')
981-
all_params.append('_request_timeout')
982-
983-
params = locals()
984-
for key, val in six.iteritems(params['kwargs']):
985-
if key not in all_params:
986-
raise TypeError(
987-
"Got an unexpected keyword argument '%s'"
988-
" to method sms_receipt_read_by_message_id_put" % key
989-
)
990-
params[key] = val
991-
del params['kwargs']
992-
# verify the required parameter 'message_id' is set
993-
if ('message_id' not in params or
994-
params['message_id'] is None):
995-
raise ValueError("Missing the required parameter `message_id` when calling `sms_receipt_read_by_message_id_put`") # noqa: E501
996-
997-
collection_formats = {}
998-
999-
path_params = {}
1000-
if 'message_id' in params:
1001-
path_params['message_id'] = params['message_id'] # noqa: E501
1002-
1003-
query_params = []
1004-
1005-
header_params = {}
1006-
1007-
form_params = []
1008-
local_var_files = {}
1009-
1010-
body_params = None
1011-
# HTTP header `Accept`
1012-
header_params['Accept'] = self.api_client.select_header_accept(
1013-
['application/json']) # noqa: E501
1014-
1015-
# HTTP header `Content-Type`
1016-
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
1017-
['application/json']) # noqa: E501
1018-
1019-
# Authentication setting
1020-
auth_settings = ['BasicAuth'] # noqa: E501
1021-
1022-
return self.api_client.call_api(
1023-
'/sms/receipts-read/{message_id}', 'PUT',
1024-
path_params,
1025-
query_params,
1026-
header_params,
1027-
body=body_params,
1028-
post_params=form_params,
1029-
files=local_var_files,
1030-
response_type='str', # noqa: E501
1031-
auth_settings=auth_settings,
1032-
async_req=params.get('async_req'),
1033-
_return_http_data_only=params.get('_return_http_data_only'),
1034-
_preload_content=params.get('_preload_content', True),
1035-
_request_timeout=params.get('_request_timeout'),
1036-
collection_formats=collection_formats)
1037-
1038939
def sms_receipts_by_message_id_get(self, message_id, **kwargs): # noqa: E501
1039940
"""Get a Specific Delivery Receipt # noqa: E501
1040941

docs/SMSApi.md

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Method | HTTP request | Description
1313
[**sms_inbound_read_by_message_id_put**](SMSApi.md#sms_inbound_read_by_message_id_put) | **PUT** /sms/inbound-read/{message_id} | Mark inbound SMS as read
1414
[**sms_inbound_read_put**](SMSApi.md#sms_inbound_read_put) | **PUT** /sms/inbound-read | Mark inbound SMS as read
1515
[**sms_price_post**](SMSApi.md#sms_price_post) | **POST** /sms/price | Calculate sms price
16-
[**sms_receipt_read_by_message_id_put**](SMSApi.md#sms_receipt_read_by_message_id_put) | **PUT** /sms/receipts-read/{message_id} | Mark specific delivery receipt as read
1716
[**sms_receipts_by_message_id_get**](SMSApi.md#sms_receipts_by_message_id_get) | **GET** /sms/receipts/{message_id} | Get a Specific Delivery Receipt
1817
[**sms_receipts_get**](SMSApi.md#sms_receipts_get) | **GET** /sms/receipts | Get all delivery receipts
1918
[**sms_receipts_post**](SMSApi.md#sms_receipts_post) | **POST** /sms/receipts | Add a delivery receipt
@@ -510,59 +509,6 @@ Name | Type | Description | Notes
510509

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

513-
# **sms_receipt_read_by_message_id_put**
514-
> str sms_receipt_read_by_message_id_put(message_id)
515-
516-
Mark specific delivery receipt as read
517-
518-
Mark specific delivery receipt as read
519-
520-
### Example
521-
```python
522-
from __future__ import print_function
523-
import time
524-
import clicksend_client
525-
from clicksend_client.rest import ApiException
526-
from pprint import pprint
527-
528-
# Configure HTTP basic authorization: BasicAuth
529-
configuration = clicksend_client.Configuration()
530-
configuration.username = 'YOUR_USERNAME'
531-
configuration.password = 'YOUR_PASSWORD'
532-
533-
# create an instance of the API class
534-
api_instance = clicksend_client.SMSApi(clicksend_client.ApiClient(configuration))
535-
message_id = 'message_id_example' # str | The message ID you want to mark as read
536-
537-
try:
538-
# Mark specific delivery receipt as read
539-
api_response = api_instance.sms_receipt_read_by_message_id_put(message_id)
540-
pprint(api_response)
541-
except ApiException as e:
542-
print("Exception when calling SMSApi->sms_receipt_read_by_message_id_put: %s\n" % e)
543-
```
544-
545-
### Parameters
546-
547-
Name | Type | Description | Notes
548-
------------- | ------------- | ------------- | -------------
549-
**message_id** | **str**| The message ID you want to mark as read |
550-
551-
### Return type
552-
553-
**str**
554-
555-
### Authorization
556-
557-
[BasicAuth](../README.md#BasicAuth)
558-
559-
### HTTP request headers
560-
561-
- **Content-Type**: application/json
562-
- **Accept**: application/json
563-
564-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
565-
566512
# **sms_receipts_by_message_id_get**
567513
> str sms_receipts_by_message_id_get(message_id)
568514

test/test_sms_api.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,6 @@ def test_sms_price_post(self):
9292
"""
9393
pass
9494

95-
def test_sms_receipt_read_by_message_id_put(self):
96-
"""Test case for sms_receipt_read_by_message_id_put
97-
98-
Mark specific delivery receipt as read # noqa: E501
99-
"""
100-
pass
101-
10295
def test_sms_receipts_by_message_id_get(self):
10396
"""Test case for sms_receipts_by_message_id_get
10497

0 commit comments

Comments
 (0)