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.
Is OAuth2 working for anyone? I'm getting this (sensitive bits removed for obvious reasons):
$ curl -s -d'' 'https://auth.hackaday.io/access_token?client_id=${ID}&client_secret=${SECRET}&code=${CODE_FROM_CALLBACK}&grant_type=authorization_code' | python -m json.tool
{
"error": "invalid_access_code",
"error_description": "Invalid access code"
}
I've also tried POSTing that in the body, although the examples use URI query parameters and that's what my code does now:
https://github.com/sjlongland/hackaday.io-spambot-hunter/blob/master/hadsh/hadapi/hadapi.py#L262-L274