altZanyLvl 1
- Windows
what URL would I use in the startWebRequest()
function to get the data of each project on the featured projects list?
what URL would I use in the startWebRequest()
function to get the data of each project on the featured projects list?
To get the list of featured projects, use https://studio.code.org/api/v1/projects/gallery/public/all
I would recommend using the App Info Library I created to get a project's information. The Library ID is oQ0qav9kZ5aqCMP9_jfv6cyI2su7W6eR7H0GPlVjbtg
.
It only has one function: AppInfo.getInfo()
. It accepts two parameters: a channel ID as a string, and a callback function.
AppInfo.getInfo("channel_id", function (data) {
console.log(data);
});
The data
variable will contain the following information: