{"id":16086662,"url":"https://github.com/astares/github-api","last_synced_at":"2025-07-19T15:07:02.188Z","repository":{"id":78113575,"uuid":"68240074","full_name":"astares/GitHub-API","owner":"astares","description":"GitHub API Wrapper for Pharo","archived":false,"fork":false,"pushed_at":"2017-12-27T13:53:48.000Z","size":25,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-05T14:43:17.313Z","etag":null,"topics":["pharo"],"latest_commit_sha":null,"homepage":null,"language":"Smalltalk","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/astares.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-14T20:19:05.000Z","updated_at":"2020-05-23T14:17:51.000Z","dependencies_parsed_at":"2023-04-28T04:30:47.209Z","dependency_job_id":null,"html_url":"https://github.com/astares/GitHub-API","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/astares/GitHub-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astares%2FGitHub-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astares%2FGitHub-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astares%2FGitHub-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astares%2FGitHub-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/astares","download_url":"https://codeload.github.com/astares/GitHub-API/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astares%2FGitHub-API/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260980957,"owners_count":23092294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pharo"],"created_at":"2024-10-09T13:24:49.842Z","updated_at":"2025-06-20T16:40:28.268Z","avatar_url":"https://github.com/astares.png","language":"Smalltalk","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub-API (for Pharo)\n\n## Important note:\nthere meanwhile are three wrappers available:\n1. https://balletie.github.io/GitHub/ (from Balletie, very complete)\n2. https://github.com/astares/GitHub-API (this one) \n3. https://github.com/guillep/github-api (one from Guille, who now bases on the one from Balletie)\n\n## Introduction\n\nThis project is a **GitHub API Wrapper** for [Pharo](http://www.pharo.rog) to easily access informations from GitHub right from your Pharo image.\n\n### Loading the project\n\nYou can load the **GitHub-API Wrapper** easily into your Pharo image by using the follwing load expression:\n\n```Smalltalk\nMetacello new \n\trepository: 'github://astares/GitHub-API/repository';\n\tbaseline: 'GitHubAPI';\n\tload.\n```\n\n## Usage\n\n### Accessing GitHub users\n\nYou can access GitHub users in two ways, either using the class **GitHubUser**\n\n```Smalltalk\nGitHubUser named: 'astares'\n```\n\nor by asking the **GitHub** class:\n\n```Smalltalk\nGitHub userNamed: 'astares'\n```\n\n### Working with a GitHub user\n\n#### Retrieving the Avatar\n\nIf you have a user you can easily access the Avatar as a regular **Form** instance in Pharo:\n\n```Smalltalk\n(GitHub userNamed: 'astares') avatar\n```\n\nreturning the following graphic form/picture:\n\n![Astares User Avatar](https://avatars.githubusercontent.com/u/5980033?v=3)\n\n#### Check the user type\n\nYou can check if the user is an organization or regular user:\n\n```Smalltalk\n(GitHub userNamed: 'pharo-project') isOrganization\n```\n\nwhich in the particular case of our example returns **true** as the [Pharo-project organization has an account on GitHub](https://github.com/pharo-project).\n\n### Working with a GitHub repositories of a user\n\nTo access the collection of repositories for a given GitHub user you can use one of the two expressions:\n\n```Smalltalk\n(GitHubUser named: 'pharo-project') repositories\n```\n\nor\n\n```Smalltalk\nGitHub repositoriesForUser: 'pharo-project' \n```\n\nwhich is a little bit shorter.\n\n\n\n## Project Structure\n\n### General packages \n\nPackage name    | Description\n--------------- | ------------------\nGitHub-API-Core | The core package\n\n### Test packages\n\nPackage name            | Description\n----------------------- | ---------------------------\nGitHub-API-Test-Core    | Tests for the core package\n\n## License\n\n(c) 2016 by Dipl.-Inf. T.Bergmann, Astares\n\nCode is released and published with **MIT License** when used for Pharo projects.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastares%2Fgithub-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fastares%2Fgithub-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastares%2Fgithub-api/lists"}