Forum Discussion
Anonymous
3 years agoYou don't have to make it a swagger client. You can just make it a Python dictionary. I was able to add a website like this:
body = { "testLocation":{"all":True}, "name":"sdk_test", "type":"webcheck", "isInternal":False, "useDefaultAlertSetting":True, "useDefaultLocationSetting":True, "domain": "apple.com", "steps": [ { 'auth': None, 'description': '', 'enable': True, 'follow_redirection': True, 'fullpage_load': False, 'http_body': '', 'http_headers': '', 'http_method': 'GET', 'http_version': '1.1', 'invert_match': False, 'keyword': '', 'label': '', 'match_type': 'plain', 'name': '__step0', 'path': '', 'post_data_edit_type': None, 'req_script': '', 'req_type': 'config', 'require_auth': False, 'resp_script': '', 'resp_type': 'config', 'schema': 'http', 'status_code': '', 'timeout': 30, 'type': 'config', 'url': '', 'use_default_root': True } ] } lm.add_website(body)
Related Content
- 8 months ago
- 2 years ago
- 9 months ago
- 2 years ago