@@ -37,7 +37,9 @@ def list_media(self,
3737 here.
3838
3939 Returns:
40- list of Media: Response from the API. successful operation
40+ ApiResponse: An object with the response value as well as other
41+ useful information such as status codes and headers.
42+ successful operation
4143
4244 Raises:
4345 APIException: When an error occurs while fetching the data from
@@ -98,7 +100,9 @@ def get_media(self,
98100 media_id (string): TODO: type description here.
99101
100102 Returns:
101- binary: Response from the API. successful operation
103+ ApiResponse: An object with the response value as well as other
104+ useful information such as status codes and headers.
105+ successful operation
102106
103107 Raises:
104108 APIException: When an error occurs while fetching the data from
@@ -163,7 +167,8 @@ def upload_media(self,
163167 cache_control (string, optional): TODO: type description here.
164168
165169 Returns:
166- void: Response from the API.
170+ ApiResponse: An object with the response value as well as other
171+ useful information such as status codes and headers.
167172
168173 Raises:
169174 APIException: When an error occurs while fetching the data from
@@ -218,7 +223,8 @@ def upload_media(self,
218223 self .validate_response (_response )
219224
220225 # Return appropriate type
221- ApiResponse (_response )
226+ return ApiResponse (_response )
227+
222228 def delete_media (self ,
223229 user_id ,
224230 media_id ):
@@ -231,7 +237,8 @@ def delete_media(self,
231237 media_id (string): TODO: type description here.
232238
233239 Returns:
234- void: Response from the API.
240+ ApiResponse: An object with the response value as well as other
241+ useful information such as status codes and headers.
235242
236243 Raises:
237244 APIException: When an error occurs while fetching the data from
@@ -272,7 +279,8 @@ def delete_media(self,
272279 self .validate_response (_response )
273280
274281 # Return appropriate type
275- ApiResponse (_response )
282+ return ApiResponse (_response )
283+
276284 def create_message (self ,
277285 user_id ,
278286 body = None ):
@@ -285,7 +293,9 @@ def create_message(self,
285293 body (MessageRequest, optional): TODO: type description here.
286294
287295 Returns:
288- BandwidthMessage: Response from the API. successful operation
296+ ApiResponse: An object with the response value as well as other
297+ useful information such as status codes and headers.
298+ successful operation
289299
290300 Raises:
291301 APIException: When an error occurs while fetching the data from
0 commit comments