Просмотр исходного кода

Add an example for reading repos from a file

Lucas Stadler лет назад: 10
Родитель
Сommit
e977e4e9ca
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      go/stars/README.md

+ 4 - 0
go/stars/README.md

21
# Fetch all repos (public, private, org member)
21
# Fetch all repos (public, private, org member)
22
$ token=<personal access token>
22
$ token=<personal access token>
23
$ curl -u heyLu:$token https://api.github.com/user/repos | ./stars
23
$ curl -u heyLu:$token https://api.github.com/user/repos | ./stars
24
25
# Fetch repos from a file
26
$ ./stars < repos.json
27
...
24
```
28
```
25
29
26
However, note that GitHub's API uses pagination, so ensure you set the
30
However, note that GitHub's API uses pagination, so ensure you set the