Skip to content

Commit a8a3de2

Browse files
committed
Fixes
1 parent f48d294 commit a8a3de2

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

examples/example_application_2.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,16 @@ def main():
102102
email=user_email,
103103
additional_info=additional_info)
104104
user = rest_client.save_user(user, send_activation_mail=False)
105-
rest_client.activate_user(body=ActivateUserRequest(user.id, user_password), send_activation_mail=False)
105+
activation_link = rest_client.get_activation_link(user.id.id)
106+
activate_token = activation_link.split('=')[-1][:-1]
107+
rest_client.activate_user(body=ActivateUserRequest(activate_token, user_password),
108+
send_activation_mail=False)
106109

107110
rest_client.add_entities_to_entity_group(customer1_administrators.id, [user.id.id])
108111
logging.info('User created:\n%r\n', user)
109112
except ApiException as e:
110113
logging.exception(e)
111114

115+
112116
if __name__ == '__main__':
113-
main()
117+
main()

tb_rest_client/api/api_pe/mobile_application_controller_api.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def get_merged_mobile_app_settings_with_http_info(self, **kwargs): # noqa: E501
194194
['application/json']) # noqa: E501
195195

196196
# Authentication setting
197-
auth_settings = ['HTTP login form'] # noqa: E501
197+
auth_settings = ['X-Authorization'] # noqa: E501
198198

199199
return self.api_client.call_api(
200200
'/api/mobile/app/settings/merged', 'GET',
@@ -278,10 +278,10 @@ def get_mobile_app_deep_link_with_http_info(self, **kwargs): # noqa: E501
278278
body_params = None
279279
# HTTP header `Accept`
280280
header_params['Accept'] = self.api_client.select_header_accept(
281-
['text/plain', 'application/json']) # noqa: E501
281+
['text/plain']) # noqa: E501
282282

283283
# Authentication setting
284-
auth_settings = ['HTTP login form'] # noqa: E501
284+
auth_settings = ['X-Authorization'] # noqa: E501
285285

286286
return self.api_client.call_api(
287287
'/api/mobile/deepLink', 'GET',
@@ -368,7 +368,7 @@ def get_mobile_app_settings_with_http_info(self, **kwargs): # noqa: E501
368368
['application/json']) # noqa: E501
369369

370370
# Authentication setting
371-
auth_settings = ['HTTP login form'] # noqa: E501
371+
auth_settings = ['X-Authorization'] # noqa: E501
372372

373373
return self.api_client.call_api(
374374
'/api/mobile/app/settings', 'GET',
@@ -562,7 +562,7 @@ def save_mobile_app_settings_with_http_info(self, body, **kwargs): # noqa: E501
562562
['application/json']) # noqa: E501
563563

564564
# Authentication setting
565-
auth_settings = ['HTTP login form'] # noqa: E501
565+
auth_settings = ['X-Authorization'] # noqa: E501
566566

567567
return self.api_client.call_api(
568568
'/api/mobile/app/settings', 'POST',

tb_rest_client/api/api_pe/user_controller_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ def get_activation_link_using_get_with_http_info(self, user_id, **kwargs): # no
528528
body_params = None
529529
# HTTP header `Accept`
530530
header_params['Accept'] = self.api_client.select_header_accept(
531-
['text/plain', 'application/json']) # noqa: E501
531+
['text/plain']) # noqa: E501
532532

533533
# Authentication setting
534534
auth_settings = ['X-Authorization'] # noqa: E501

0 commit comments

Comments
 (0)