parkint — 2014-04-01T15:52:50-04:00 — #1
I am working on a project in which I intend to leverage the Github API.
I have found a few Ruby Gems, but none that seems quite "ready for prime time".
Do you have experience with (or have written yourself) a good Gem for access to the Github API?
Do you have a snippet (Gist or other) of sample code that demonstrates:
- Authentication with OAuth/OAuth2
- Access to a list of Public Gists (just as an example)
I have Registered the application in Github; so I have a 'Client ID' and 'Client Secret'
wwb_99 — 2014-04-02T15:55:39-04:00 — #2
No examples but for Oauth there should be some solid gems that implement that, requests should be easy on top of it.
Not a whole lot of ruby seat time so I don't have any more.
markbrown4 — 2014-04-04T10:32:12-04:00 — #3
For oauth I've just used omniauth with the facebook/twitter adapters but omniauth-github should do the same.
The 'gh' gem works for cases where you want to access private repos
@gh || = GH.with(
There's a good public JSON api's you can use also.
All the best,
parkint — 2014-04-04T13:32:45-04:00 — #4
That is great. Thanks for the response.
john_betong — 2014-05-05T06:38:09-04:00 — #5
I recently received the above blog post mostly about Github Gists.
What I liked mostly was the
and one from me:
Notice the addition of /raw/ after username, in the last URL. This prevents source code display.
parkint — 2014-05-05T14:33:31-04:00 — #6
Whoa. That is really cool.
There are many, many creative ways people have applied the Github API. I am playing with it.
Thanks for sharing that.