We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b05c4c commit c398049Copy full SHA for c398049
floating-ip-droplet-id.py
@@ -8,7 +8,7 @@
8
api_base = 'https://api.digitalocean.com/v2'
9
10
def main():
11
- headers = {'Authorization': 'Bearer YOU_DIGITAL_OCEAN_API_KEY',
+ headers = {'Authorization': 'Bearer DIGITAL_OCEAN_API_KEY_PLACEHOLDER',
12
'Content-type': 'application/json'}
13
url = api_base + "/floating_ips"
14
r = requests.get(url, headers=headers)
@@ -21,4 +21,4 @@ def main():
21
print('{}'.format(resp['floating_ips'][0]['droplet']['id']))
22
23
if __name__ == "__main__":
24
- main()
+ main()
0 commit comments