Comments on post “Team Leaderboard”
Sam Couch
@samuelcouch · Engineer // People Person
This is awesome! I love the idea. It would be really great to have an API as well to hook in to. Mainly thinking it would be cool to be able to poll the leader board from hubot.
1sharetweet・
Jake Dahn
@jakedahn · child of the internet
@samuelcouch That's a great idea! I hope to add a more publicly friendly API soon.
--
While it isn't obvious, or really supported, you can sort of make this happen today!
Behind the scenes of the ui is a basic API that is in the process of being fleshed out. In your browser if you open up the web inspector and look for the HTTP request to `https://api.teamleaderboard.us/a...` you can look in the request headers and get your json web token. You can use this token to make requests against the API to get information about your team.
`curl 'https://api.teamleaderboard.us/a...' -H 'Authorization: jwt your.jsonwebtoken.here'`
2sharetweet・
Sam Couch
@samuelcouch · Engineer // People Person
@jakedahn Oh cool! May try and flesh this out in the next week or two.
upvotesharetweet・