We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cf026e commit d0c826aCopy full SHA for d0c826a
1 file changed
probely_api_examples/create_account_api_key_enterprise.py
@@ -1,6 +1,6 @@
1
#!/usr/bin/env python
2
"""
3
-Get an API key for your account
+Create an API key for your account
4
5
import getpass
6
import requests
@@ -16,7 +16,6 @@
16
# Get login token
17
response = requests.post(auth_endpoint,
18
data={'username': username, 'password': password})
19
-print(response.json())
20
token = response.json()['token']
21
22
headers = {
@@ -33,6 +32,7 @@
33
32
34
if response.status_code == 201:
35
print("\nAccount API key:", response.json()['key'])
+ print("\nPlease record this key, it will not be shown again.")
36
37
else:
38
print('\n[%s]\n%s' %(response.status_code, response.text))
0 commit comments