[ANN] Basic GitHub-API for Pharo
Hi, to get warm with Git, GitFileTree and Iceberg last week I was in need of something quick I could implement to try these new tools out. While being on my GitHub webpage I've seen at the bottom a link to "API" and was happily surprised that GitHub could be accessed also with a REST API. So I wrapped a few of these calls within Pharo and now you can also query GitHub infos easily from inside of the image: (GitHub userNamed: 'astares') avatar inspect "Returns the avatar form" (GitHub userNamed: 'pharo-project') isOrganization (GitHubUser named: 'pharo-project') repositories Code could be improved and extended further, possible also be used for accessing/controlling GitHub from Iceberg later. If you want to play with it just load it from Catalog in Pharo 6.0. Code and docu is available on https://github.com/astares/GitHub-API Have fun T.
Thanks for sharing this. I did not yet read the documentation (I will soon) but I wonder what is the difference with http://forum.world.st/ANN-GitHub-API-Bindings-new-version-td4873091.html Thanks in advance! On Fri, Sep 23, 2016 at 10:05 AM, Torsten Bergmann <astares@gmx.de> wrote:
Hi,
to get warm with Git, GitFileTree and Iceberg last week I was in need of something quick I could implement to try these new tools out.
While being on my GitHub webpage I've seen at the bottom a link to "API" and was happily surprised that GitHub could be accessed also with a REST API.
So I wrapped a few of these calls within Pharo and now you can also query GitHub infos easily from inside of the image:
(GitHub userNamed: 'astares') avatar inspect "Returns the avatar form"
(GitHub userNamed: 'pharo-project') isOrganization
(GitHubUser named: 'pharo-project') repositories
Code could be improved and extended further, possible also be used for accessing/controlling GitHub from Iceberg later.
If you want to play with it just load it from Catalog in Pharo 6.0.
Code and docu is available on https://github.com/astares/GitHub-API
Have fun T.
-- Mariano http://marianopeck.wordpress.com
participants (2)
-
Mariano Martinez Peck -
Torsten Bergmann