Skip to content

Commit c398049

Browse files
committed
Updated DO API key placeholder
1 parent 9b05c4c commit c398049

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

floating-ip-droplet-id.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
api_base = 'https://api.digitalocean.com/v2'
99

1010
def main():
11-
headers = {'Authorization': 'Bearer YOU_DIGITAL_OCEAN_API_KEY',
11+
headers = {'Authorization': 'Bearer DIGITAL_OCEAN_API_KEY_PLACEHOLDER',
1212
'Content-type': 'application/json'}
1313
url = api_base + "/floating_ips"
1414
r = requests.get(url, headers=headers)
@@ -21,4 +21,4 @@ def main():
2121
print('{}'.format(resp['floating_ips'][0]['droplet']['id']))
2222

2323
if __name__ == "__main__":
24-
main()
24+
main()

0 commit comments

Comments
 (0)