I want to know how to get all commits/versions of a file (i.e. the contents of the commits/versions) via the GitHub API.
I figured one way to do it which is equivalent to the answer to this other question.
The problem is this uses the "contents" API, which has an upper limit of 1 MB per file (you get this error message if you try to access a file larger than 1 MB: "This API returns blobs up to 1 MB in size. The requested blob is too large to fetch via the API, but you can use the Git Data API to request blobs up to 100 MB in size.
")
So to get files larger than 1 MB (up to 100 MB) you need to use the "blob" API, but I don't know how to use it in the same way as the contents API.
I.e., given a specific commit of a file, how do you get the contents of that file using the "blob" API?