Get a shared user counter using Github API v3

From doc , I can list the repositories that were filmed using:

GET /users/:username/starred

But it seems that I cannot directly get the number of full star user repositories.

Did I miss something?

+4
source share
2 answers

This is a very interesting question, and I think I found the answer to it. Let's use the GitHub top user diagram to randomly select Ocramius with its 299 selected repositories available in JSON formed from this address .

Now try to request headers through curl -I "https://api.github.com/users/Ocramius/starred". We get one tanned header:

: https://api.github.com/user/154256/starred?page=2; rel= "next", https://api.github.com/user/154256/starred?page=10; = ""

API, , curl -I "https://api.github.com/users/Ocramius/starred?per_page=1"?

: https://api.github.com/user/154256/starred?per_page=1&page=2; rel= "next", https://api.github.com/user/154256/starred?per_page=1&page=299; = ""

! RFC5988 HTTP-, rel="last", 299!

+6

Ken Y-N :

, api Link.

, Link, JSON-ARRAY . 0 1.

+3

All Articles