[ANN] Basic GitHub-API for Pharo

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[ANN] Basic GitHub-API for Pharo

Torsten Bergmann
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.

Reply | Threaded
Open this post in threaded view
|

Re: [ANN] Basic GitHub-API for Pharo

Mariano Martinez Peck
Thanks for sharing this. I did not yet read the documentation (I will soon) but I wonder what is the difference with 


Thanks in advance!

On Fri, Sep 23, 2016 at 10:05 AM, Torsten Bergmann <[hidden email]> 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.




--