Skip to content

Commit

Permalink
remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfitzo committed Dec 12, 2024
1 parent 72a48fc commit 812310b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions gen3/docs/gen3-resources/user-guide/using-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ While displayed, click “copy” to copy the API key to the clipboard or “dow

![Screenshot of the API Key window showing the option to copy the API key or download the .json file with credentials][img API copy keys]


[//]: # (Alex: We should NOT promote the below code for security reasons. This would lead to a leaked token if the code was shared. I would highly recommend that we rework this section to tell people to set environment variables or use a file path in the code and NOT hard-code the key here.)

In Python, the following command is sent, using the module “requests”, to receive the access token:
```python
# Save the credentials.json file from the website. Copy the file path to the credentials file with the key.
Expand All @@ -49,7 +46,7 @@ import json, requests
api = "https://gen3.datacommons.io"
key_file = "/put_path_to/credentials.json"

# Read the key from the file and
# Read the key from the file and
with open(key_file) as json_file:
key = json.load(json_file)

Expand Down

0 comments on commit 812310b

Please sign in to comment.