GitHub API REST Client (referred to as version 3) is incredibly user-friendly.
GET https://api.github.com/repos/Prodigy-Hacking/ProdigyMathGameHacking
By utilizing this endpoint, you can access all the information within that repository. Look for the contents
path, and experiment with it using:
GET https://api.github.com/repos/Prodigy-Hacking/ProdigyMathGameHacking/contents/hacks
You can then iterate through the returned array to retrieve each file. If you specifically need the raw content of a particular file, such as /hacks/Character/customName.js
, consider making a request like:
GET https://api.github.com/repos/Prodigy-Hacking/ProdigyMathGameHacking/contents/hacks/Character/customName.js
{
"name": "customName.js",
"path": "hacks/Character/customName.js",
"sha": "77b86151fbc3930d5f11e785333f82adbcc33ebf",
...
}
Accessing the specified download_url
will present you with:
// Custom name (Client side only). (Put text in text here.)
hack.instance.prodigy.player.getName = () => "TEXT HERE";
This process is well-documented in GitHub's Documentation.
Feel free to explore the data at your own pace... just remember to authenticate your requests to avoid hitting the GitHub rate limit.