Skip to content

Commit d0c826a

Browse files
authored
Update create_account_api_key_enterprise.py
1 parent 4cf026e commit d0c826a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

probely_api_examples/create_account_api_key_enterprise.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python
22
"""
3-
Get an API key for your account
3+
Create an API key for your account
44
"""
55
import getpass
66
import requests
@@ -16,7 +16,6 @@
1616
# Get login token
1717
response = requests.post(auth_endpoint,
1818
data={'username': username, 'password': password})
19-
print(response.json())
2019
token = response.json()['token']
2120

2221
headers = {
@@ -33,6 +32,7 @@
3332

3433
if response.status_code == 201:
3534
print("\nAccount API key:", response.json()['key'])
35+
print("\nPlease record this key, it will not be shown again.")
3636

3737
else:
3838
print('\n[%s]\n%s' %(response.status_code, response.text))

0 commit comments

Comments
 (0)