Skip to content

Instantly share code, notes, and snippets.

@ghiculescu
Created October 21, 2019 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ghiculescu/58d7657edd9be56cd4f3340fbde9fc97 to your computer and use it in GitHub Desktop.
Save ghiculescu/58d7657edd9be56cd4f3340fbde9fc97 to your computer and use it in GitHub Desktop.
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