From bac7cad6aa974ea02978920fd0965b758818d94b Mon Sep 17 00:00:00 2001 From: crazygj Date: Sat, 18 Mar 2017 11:17:16 +0800 Subject: [PATCH] modify update_device_token_with_http_info() method to make it works 1) Change body_params to "{}" 2) Change header Content-Type to application/json --- artikcloud/apis/devices_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artikcloud/apis/devices_api.py b/artikcloud/apis/devices_api.py index 4fbf023..e611963 100644 --- a/artikcloud/apis/devices_api.py +++ b/artikcloud/apis/devices_api.py @@ -863,7 +863,7 @@ def update_device_token_with_http_info(self, device_id, **kwargs): form_params = [] local_var_files = {} - body_params = None + body_params = "{}" # HTTP header `Accept` header_params['Accept'] = self.api_client.\ @@ -873,7 +873,7 @@ def update_device_token_with_http_info(self, device_id, **kwargs): # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['text/plain']) + select_header_content_type(['application/json']) # Authentication setting auth_settings = ['artikcloud_oauth']