Skip to content
Discussion options

You must be logged in to vote

I solved this problem by 2 queries.
req("GET", "https://api.github.com/repos/spacemeowx2/100mb/contents/100mb.bin");
Then in the resulting array there is a key "git_url". By reqing this key (in this case the value is equal to https://api.github.com/repos/spacemeowx2/100mb/git/blobs/2ecda965e50fd1136e87be63df04d035022a2206) we get another array with the key "content", which will contain our data. It is important that the data is encoded in base64 format.

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ossanna16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Apps API and Webhooks Discussions related to GitHub's APIs or Webhooks Question Ask and answer questions about GitHub features and usage inactive This discussion has been automatically marked as inactive. This was formerly labeled stale.
3 participants