Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1b561d3

Browse files
authored
Update MAKEME.md
1 parent 65529b5 commit 1b561d3

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

Week6/MAKEME.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,25 @@ Read through the JavaScript Fundamentals [README](https://github.com/HackYourFut
66

77
ASK A QUESTION ON SLACK!!!!
88

9-
## FROM CLASS
10-
Create a repo that makes this code work
9+
## Homework from class
10+
Create a repo that makes this code work, implies an html file and a js file.
1111
```
1212
fetchReposFromOrganization('hackyourfuture')
1313
.then(renderListOfRepositories)
1414
.then(fetchContributors)
1515
.then(renderContributors);
1616
```
17+
18+
Make sure you authenticate the request with a **token**, [Create a new token](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/).
19+
You should be able to achieve with somenthing like:
20+
```
21+
request.setRequestHeader("Authorization", "token " + TOKEN);
22+
```
23+
24+
**IMPORTANT REQUIREMENT**
25+
*We're assuming that you know that **TOKEN is a precious piece of data**.
26+
You've to make sure that you **never publish your TOKEN** openly!*
27+
28+
*Tip:*
29+
A way of solving, could be, creating an input where I to fill the personal token. Maybe use [Local Storage](https://developer.mozilla.org/en/docs/Web/API/Window/localStorage) so when we come back is already set.
30+
You can find also start to look at stuff like: [How to get value from input](http://stackoverflow.com/questions/11563638/javascript-how-to-get-value-of-text-input-field).. etc...

0 commit comments

Comments
 (0)