Skip to content

Commit

Permalink
Removing unused client_id from directions
Browse files Browse the repository at this point in the history
  • Loading branch information
mathymitchell committed Jul 15, 2019
1 parent 9aa3ff2 commit 4420383
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ code yelp_api.json

In this file, lets create a dictionary of values representing the client id and api key that looks something like this:

`{"client_id": "input client id here!", "api_key": "input api key here!"}`
`{"api_key": "input api key here!"}`

NOTE: Double quotes are important! You'll copy and paste the `client_id` and `api_key` values that yelp grants you after you create your app.
NOTE: Double quotes are important! You'll copy and paste the `api_key` value that yelp grants you after you create your app.

Ok, so now we have a file in our .secret folder on our home directory. Safe and sound (mostly) from anyone trying to steal our info off github.

Expand All @@ -92,11 +92,9 @@ So the line below would become:
```keys = get_keys("/Users/matthew.mitchell/.secret/yelp_api.json")```



```python
keys = get_keys("/Users/YOUR_USERNAME_HERE/.secret/yelp_api.json")

client_id = keys['client_id']
api_key = keys['api_key']

#While you may wish to print out these api keys to check that they imported properly,
Expand Down
7 changes: 3 additions & 4 deletions index.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@
"\n",
"In this file, lets create a dictionary of values representing the client id and api key that looks something like this:\n",
"\n",
"`{\"client_id\": \"input client id here!\", \"api_key\": \"input api key here!\"}`\n",
"`{\"api_key\": \"input api key here!\"}`\n",
"\n",
"NOTE: Double quotes are important! You'll copy and paste the `client_id` and `api_key` values that yelp grants you after you create your app.\n",
"NOTE: Double quotes are important! You'll copy and paste the `api_key` value that yelp grants you after you create your app.\n",
"\n",
"Ok, so now we have a file in our .secret folder on our home directory. Safe and sound (mostly) from anyone trying to steal our info off github.\n",
"\n",
Expand Down Expand Up @@ -116,7 +116,7 @@
"If you're not sure what your username is, check it with `pwd` \n",
"For example, my current working directory is ```/Users/matthew.mitchell/Documents/dsc-using-yelp-api-codealong``` \n",
"So the line below would become:\n",
"```keys = get_keys(\"/Users/matthew.mitchell/.secret/yelp_api.json\")```\n"
"```keys = get_keys(\"/Users/matthew.mitchell/.secret/yelp_api.json\")```"
]
},
{
Expand All @@ -127,7 +127,6 @@
"source": [
"keys = get_keys(\"/Users/YOUR_USERNAME_HERE/.secret/yelp_api.json\")\n",
"\n",
"client_id = keys['client_id']\n",
"api_key = keys['api_key']\n",
"\n",
"#While you may wish to print out these api keys to check that they imported properly,\n",
Expand Down

0 comments on commit 4420383

Please sign in to comment.