Close
0%
0%

Hackaday API

Official hackaday.io API project

Similar projects worth following
Official hackaday.io API project

This REST API provides programmatic access to data from Hackaday.io. Read project data, user profiles, comments, pages, search and more using the API. The authorization to access the API is via the open standard for authorization OAuth. The responses are available in JSON.

Check out dev.hackaday.io, and register your app here.

View all instructions

Enjoy this project?

Share

Discussions

Paul Scott wrote 05/05/2015 at 11:21 point

Been working on getting OAuth to work so far to log a user in. Close
now, but running into an issue that the OAuth authorize URL seems to not
exist... I keep getting a 404. Also have tried a bunch of different permutations such as api.hackaday.io/v1/ etc. Still no deal.


https://hackaday.io/authorize

Any suggestions?

  Are you sure? yes | no

Ivan Lazarevic wrote 05/05/2015 at 16:59 point

are you sending client id like this https://hackaday.io/authorize?client_id=CLIENT_ID&state=&response_type=code ?

  Are you sure? yes | no

Paul Scott wrote 05/05/2015 at 17:07 point

yes, tested with full params as well as none. Seems the authorize bit is producing the 404 though...

  Are you sure? yes | no

Ivan Lazarevic wrote 05/05/2015 at 17:09 point

sending you PM

  Are you sure? yes | no

Paul Scott wrote 05/05/2015 at 17:11 point

I think I may have just figured it out. Callback URL needs to be handled via Intent filter! Let me try that...

  Are you sure? yes | no

Paul Scott wrote 05/05/2015 at 17:30 point

OK, I am an official idiot! When I copied and pasted the client_secret
and client_id from the API docs page, I somehow copied a leading space
as well, which screwed up the whole thing! Sorry about being a dumbass!
Thanks for your help! All working now! :)

  Are you sure? yes | no

Paul Scott wrote 05/05/2015 at 06:18 point

Started a full featured Android app using the Hackaday.io API here 

https://hackaday.io/project/5616-hackaday-io-android-app

  Are you sure? yes | no

Edison Chen wrote 05/05/2015 at 07:06 point

an app? awesome!

  Are you sure? yes | no

Alex Rich wrote 05/05/2015 at 03:45 point

  Are you sure? yes | no

Ivan Lazarevic wrote 05/05/2015 at 06:34 point

look nice. good job!

  Are you sure? yes | no

davedarko wrote 05/05/2015 at 22:14 point

@Alex Rich thanks to you and your project it was super easy to remake! Awesome stuff.

  Are you sure? yes | no

Alex Rich wrote 05/05/2015 at 23:11 point

Great!  let me know if you improve anything, I might make a fancy skull counter that displays more about the project like #followers, etc.  Endless possibilities.

  Are you sure? yes | no

davedarko wrote 05/06/2015 at 05:57 point

I'm still thinking about a project to get started with the esp8266 and something like a skull alert seems about right. So no webpage for now. Would be cool if they would extend the skull api to use it like the facebook like on other pages, like their blog.

  Are you sure? yes | no

Alex Rich wrote 05/04/2015 at 17:13 point

Thanks for the reply to my question, that worked!  I was getting hung up on the OAuth / callback stuff because that was new to me, it wasn't initially clear that for public data I can skip those steps and just do a normal GET request using my API key.  The examples on the API site are great btw, thanks!  Will implement my little counter tonight.  It might be cool for you guys to eventually just post code snippets for brain-dead things like displaying your project's skull count on your external project website (next to a button that lets people skull the project).  For something like this that would ping the API every time a website is visited, you could recommend how to implement a simple cache that is only refreshed if a few minutes has passed.  Just some ideas floating through my head.

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates