Skip to content

Commit a7f9e40

Browse files
committed
Update endpoint URL + remove comments
1 parent 01d0bed commit a7f9e40

14 files changed

+51
-51
lines changed

message_media_webhooks/controllers/api_controller.py

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
message_media_webhooks.controllers.api_controller
55
6-
This file was automatically generated for MessageMedia by APIMATIC v2.0 ( https://apimatic.io ).
6+
77
"""
88

99
import logging
@@ -25,7 +25,7 @@ def __init__(self, client=None, call_back=None):
2525
def create(self,
2626
content_type,
2727
body):
28-
"""Does a POST request to /v1/webooks/messages.
28+
"""Does a POST request to /v1/webhooks/messages.
2929
3030
This will create a webhook for the specified `events`
3131
### Parameters
@@ -75,11 +75,11 @@ def create(self,
7575
</ul>
7676
7777
Args:
78-
content_type (string): TODO: type description here. Example:
79-
body (CreateRequest): TODO: type description here. Example:
78+
content_type (string): TODO: type description here. Example:
79+
body (CreateRequest): TODO: type description here. Example:
8080
8181
Returns:
82-
mixed: Response from the API.
82+
mixed: Response from the API.
8383
8484
Raises:
8585
APIException: When an error occurs while fetching the data from
@@ -90,20 +90,20 @@ def create(self,
9090
"""
9191
try:
9292
self.logger.info('create called.')
93-
93+
9494
# Prepare query URL
9595
self.logger.info('Preparing query URL for create.')
9696
_query_builder = Configuration.base_uri
97-
_query_builder += '/v1/webooks/messages'
97+
_query_builder += '/v1/webhooks/messages'
9898
_query_url = APIHelper.clean_url(_query_builder)
99-
99+
100100
# Prepare headers
101101
self.logger.info('Preparing headers for create.')
102102
_headers = {
103103
'accept': 'application/json',
104104
'Content-Type': content_type
105105
}
106-
106+
107107
# Prepare and execute request
108108
self.logger.info('Preparing and executing request for create.')
109109
_request = self.http_client.post(_query_url, headers=_headers, parameters=APIHelper.json_serialize(body))
@@ -115,7 +115,7 @@ def create(self,
115115
if _context.response.status_code == 400:
116116
raise APIException('', _context)
117117
self.validate_response(_context)
118-
118+
119119
# Return appropriate type
120120
return APIHelper.json_deserialize(_context.response.raw_body)
121121

@@ -125,7 +125,7 @@ def create(self,
125125

126126
def delete_delete_and_update_webhook(self,
127127
webhook_id):
128-
"""Does a DELETE request to /v1/webooks/messages/{webhookId}.
128+
"""Does a DELETE request to /v1/webhooks/messages/{webhookId}.
129129
130130
This will delete the webhook wuth the give id.
131131
a **Response 404 is returned when** :
@@ -134,10 +134,10 @@ def delete_delete_and_update_webhook(self,
134134
</ul>
135135
136136
Args:
137-
webhook_id (uuid|string): TODO: type description here. Example:
137+
webhook_id (uuid|string): TODO: type description here. Example:
138138
139139
Returns:
140-
void: Response from the API.
140+
void: Response from the API.
141141
142142
Raises:
143143
APIException: When an error occurs while fetching the data from
@@ -148,16 +148,16 @@ def delete_delete_and_update_webhook(self,
148148
"""
149149
try:
150150
self.logger.info('delete_delete_and_update_webhook called.')
151-
151+
152152
# Prepare query URL
153153
self.logger.info('Preparing query URL for delete_delete_and_update_webhook.')
154154
_query_builder = Configuration.base_uri
155-
_query_builder += '/v1/webooks/messages/{webhookId}'
156-
_query_builder = APIHelper.append_url_with_template_parameters(_query_builder, {
155+
_query_builder += '/v1/webhooks/messages/{webhookId}'
156+
_query_builder = APIHelper.append_url_with_template_parameters(_query_builder, {
157157
'webhookId': webhook_id
158158
})
159159
_query_url = APIHelper.clean_url(_query_builder)
160-
160+
161161
# Prepare and execute request
162162
self.logger.info('Preparing and executing request for delete_delete_and_update_webhook.')
163163
_request = self.http_client.delete(_query_url)
@@ -177,7 +177,7 @@ def delete_delete_and_update_webhook(self,
177177
def retrieve(self,
178178
page=None,
179179
page_size=None):
180-
"""Does a GET request to /v1/webooks/messages/.
180+
"""Does a GET request to /v1/webhooks/messages/.
181181
182182
This will retrieve all webhooks for the account we're connected with.
183183
a **Response 400 is returned when** :
@@ -187,11 +187,11 @@ def retrieve(self,
187187
</ul>
188188
189189
Args:
190-
page (int, optional): TODO: type description here. Example:
191-
page_size (int, optional): TODO: type description here. Example:
190+
page (int, optional): TODO: type description here. Example:
191+
page_size (int, optional): TODO: type description here. Example:
192192
193193
Returns:
194-
RetrieveResponse: Response from the API.
194+
RetrieveResponse: Response from the API.
195195
196196
Raises:
197197
APIException: When an error occurs while fetching the data from
@@ -202,25 +202,25 @@ def retrieve(self,
202202
"""
203203
try:
204204
self.logger.info('retrieve called.')
205-
205+
206206
# Prepare query URL
207207
self.logger.info('Preparing query URL for retrieve.')
208208
_query_builder = Configuration.base_uri
209-
_query_builder += '/v1/webooks/messages/'
209+
_query_builder += '/v1/webhooks/messages/'
210210
_query_parameters = {
211211
'page': page,
212212
'pageSize': page_size
213213
}
214214
_query_builder = APIHelper.append_url_with_query_parameters(_query_builder,
215215
_query_parameters, Configuration.array_serialization)
216216
_query_url = APIHelper.clean_url(_query_builder)
217-
217+
218218
# Prepare headers
219219
self.logger.info('Preparing headers for retrieve.')
220220
_headers = {
221221
'accept': 'application/json'
222222
}
223-
223+
224224
# Prepare and execute request
225225
self.logger.info('Preparing and executing request for retrieve.')
226226
_request = self.http_client.get(_query_url, headers=_headers)
@@ -232,7 +232,7 @@ def retrieve(self,
232232
if _context.response.status_code == 400:
233233
raise APIException('', _context)
234234
self.validate_response(_context)
235-
235+
236236
# Return appropriate type
237237
return APIHelper.json_deserialize(_context.response.raw_body, RetrieveResponse.from_dictionary)
238238

@@ -244,17 +244,17 @@ def update(self,
244244
webhook_id,
245245
content_type,
246246
body):
247-
"""Does a PATCH request to /v1/webooks/messages/{webhookId}.
247+
"""Does a PATCH request to /v1/webhooks/messages/{webhookId}.
248248
249-
This will update a webhook and returned the updated Webhook.
249+
This will update a webhook and returned the updated Webhook.
250250
you can update all the attributes individually or together.
251251
PS : the new value will override the previous one.
252252
### Parameters
253253
+ same parameters rules as create webhook apply
254254
a **Response 404 is returned when** :
255255
<ul>
256256
<li>there is no webhook with this `webhookId` </li>
257-
</ul>
257+
</ul>
258258
a **Response 400 is returned when** :
259259
<ul>
260260
<li>all attributes are null </li>
@@ -264,12 +264,12 @@ def update(self,
264264
</ul>
265265
266266
Args:
267-
webhook_id (uuid|string): TODO: type description here. Example:
268-
content_type (string): TODO: type description here. Example:
269-
body (UpdateRequest): TODO: type description here. Example:
267+
webhook_id (uuid|string): TODO: type description here. Example:
268+
content_type (string): TODO: type description here. Example:
269+
body (UpdateRequest): TODO: type description here. Example:
270270
271271
Returns:
272-
void: Response from the API.
272+
void: Response from the API.
273273
274274
Raises:
275275
APIException: When an error occurs while fetching the data from
@@ -280,22 +280,22 @@ def update(self,
280280
"""
281281
try:
282282
self.logger.info('update called.')
283-
283+
284284
# Prepare query URL
285285
self.logger.info('Preparing query URL for update.')
286286
_query_builder = Configuration.base_uri
287-
_query_builder += '/v1/webooks/messages/{webhookId}'
288-
_query_builder = APIHelper.append_url_with_template_parameters(_query_builder, {
287+
_query_builder += '/v1/webhooks/messages/{webhookId}'
288+
_query_builder = APIHelper.append_url_with_template_parameters(_query_builder, {
289289
'webhookId': webhook_id
290290
})
291291
_query_url = APIHelper.clean_url(_query_builder)
292-
292+
293293
# Prepare headers
294294
self.logger.info('Preparing headers for update.')
295295
_headers = {
296296
'Content-Type': content_type
297297
}
298-
298+
299299
# Prepare and execute request
300300
self.logger.info('Preparing and executing request for update.')
301301
_request = self.http_client.patch(_query_url, headers=_headers, parameters=APIHelper.json_serialize(body))

message_media_webhooks/controllers/base_controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
message_media_webhookscontrollers.base_controller
55
6-
This file was automatically generated for MessageMedia by APIMATIC v2.0 ( https://apimatic.io ).
6+
77
"""
88

99
from ..api_helper import APIHelper

message_media_webhooks/http/http_call_back.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
message_media_webhooks.http.http_call_back
55
6-
This file was automatically generated for MessageMedia by APIMATIC v2.0 ( https://apimatic.io ).
6+
77
"""
88

99
class HttpCallBack(object):

message_media_webhooks/http/http_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
message_media_webhooks.http.http_client
55
6-
This file was automatically generated for MessageMedia by APIMATIC v2.0 ( https://apimatic.io ).
6+
77
"""
88

99
from .http_request import HttpRequest

message_media_webhooks/http/http_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
message_media_webhooks.http.http_context
55
6-
This file was automatically generated for MessageMedia by APIMATIC v2.0 ( https://apimatic.io ).
6+
77
"""
88

99
class HttpContext(object):

message_media_webhooks/http/http_method_enum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
message_media_webhooks.http.http_method_enum
55
6-
This file was automatically generated for MessageMedia by APIMATIC v2.0 ( https://apimatic.io ).
6+
77
"""
88

99
class HttpMethodEnum(object):

message_media_webhooks/http/http_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
message_media_webhooks.http.http_request
55
6-
This file was automatically generated for MessageMedia by APIMATIC v2.0 ( https://apimatic.io ).
6+
77
"""
88
from ..api_helper import APIHelper
99

message_media_webhooks/http/http_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
message_media_webhooks.http.http_response
55
6-
This file was automatically generated for MessageMedia by APIMATIC v2.0 ( https://apimatic.io ).
6+
77
"""
88

99
class HttpResponse(object):

message_media_webhooks/http/requests_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
message_media_webhooks.http.requests_client
55
6-
This file was automatically generated for MessageMedia by APIMATIC v2.0 ( https://apimatic.io ).
6+
77
"""
88

99
import requests

message_media_webhooks/message_media_webhooks_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
message_media_webhooks.message_media_webhooks_client
55
6-
This file was automatically generated for MessageMedia by APIMATIC v2.0 ( https://apimatic.io ).
6+
77
"""
88
from .decorators import lazy_property
99
from .configuration import Configuration

0 commit comments

Comments
 (0)