Loading network_app_samples/network_app_invoker_sample/network_app_invoker.py +2 −2 Original line number Diff line number Diff line Loading @@ -29,7 +29,7 @@ def update_token(access_token): } # Get the current environment details response = requests.get(url, headers=headers) response = requests.get(url, headers=headers, timeout=10) # Check if the request was successful if response.status_code == 200: Loading Loading @@ -65,7 +65,7 @@ def update_token(access_token): } # Update the environment in Postman put_response = requests.put(url, headers=headers, data=json.dumps(updated_data)) put_response = requests.put(url, headers=headers, data=json.dumps(updated_data), timeout=10) if put_response.status_code == 200: print("Access token updated successfully.") Loading Loading
network_app_samples/network_app_invoker_sample/network_app_invoker.py +2 −2 Original line number Diff line number Diff line Loading @@ -29,7 +29,7 @@ def update_token(access_token): } # Get the current environment details response = requests.get(url, headers=headers) response = requests.get(url, headers=headers, timeout=10) # Check if the request was successful if response.status_code == 200: Loading Loading @@ -65,7 +65,7 @@ def update_token(access_token): } # Update the environment in Postman put_response = requests.put(url, headers=headers, data=json.dumps(updated_data)) put_response = requests.put(url, headers=headers, data=json.dumps(updated_data), timeout=10) if put_response.status_code == 200: print("Access token updated successfully.") Loading