Skip to content

Instantly share code, notes, and snippets.

@ghiculescu ghiculescu/canny.js
Created Oct 21, 2019

Embed
What would you like to do?
fetch("https://YOUR_DOMAIN.canny.io/api/users/get", {"credentials":"include","headers":{"accept":"*/*","accept-language":"en-GB,en;q=0.9,en-US;q=0.8","content-type":"application/json","sec-fetch-mode":"cors","sec-fetch-site":"same-origin"},"referrer":"https://YOUR_DOMAIN.canny.io/admin/users","referrerPolicy":"no-referrer-when-downgrade","body":"{\"__host\":\"YOUR_DOMAIN.canny.io\___LOTS_OF_OTHER_CRAP_HERE___\"limit\":1000}","method":"POST","mode":"cors"}).then(d => d.json().then(t => console.log(t.result.users.sort((a, b) => b.voteCount - a.voteCount))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.