Open Accio1 opened 3 years ago
I've got an idea. Why, instead of manually updating the members list, don't we just use a GET request to https://api.scratch.mit.edu/studios/30136012/curators?
Run this:
let obj;
fetch('https://api.scratch.mit.edu/studios/30136012/curators')
.then(response => response.json())
.then(data => obj = data)
and then run this:
for (x in obj) {
console.log(obj[x].username);
}
That only gets the first 20 members since it's paginated.
oh well, what if we do a run on both?
Both what? Managers and curators?
pages :)
And also we can GET from the API multiple times, with increasing ?offset
s (increasing by 20) repeating until the response is []
.
Then for each response we store them in an array and iterate through each item of each response to add the members.
ok all needed is now to get assigned
I've got an idea. Why, instead of manually updating the members list, don't we just use a GET request to https://api.scratch.mit.edu/studios/30136012/curators?
Run this:
let obj; fetch('https://api.scratch.mit.edu/studios/30136012/curators') .then(response => response.json()) .then(data => obj = data)
sigh. that would be blocked because they're not the same url
oh
Making API requests to Scratch requires a CORS Proxy. I don't want to spam Scratch's servers by making multiple requests each time someone loads the page.
how about a github actions workflow to automatically create the curator list?
how about a github actions workflow to automatically create the curator list?
pretty easy thing to do, i could do this if you guys allowed me to
The site should also be updated accordingly with the new thumbnail.
@Accio1 this is a main priority right now, correct?
Is your feature request related to a problem? The Forum Helpers has moved to a new studio, meaning that this site needs to be updated to reflect that! I have made a checklist below of what needs to be changed and features related to this that should be added. Feel free to discuss these features or request new ones!
@leahcimto @gosoccerboy5