Gist creation in 5 lines with Java v3 API
As part of the Mylyn connector announcement last week a new stand-alone Java library was released for accessing GitHub API v3. Below is a 5 line example showing how to…
As part of the Mylyn connector announcement last week a new stand-alone Java library was released for accessing GitHub API v3.
Below is a 5 line example showing how to create a new private Gist that has a single file containing a simple one line Java example:
Running the above example would create the following Gist:
Many more examples can be found within the GitHub Mylyn connector source base which uses it exclusively for all API calls. The library currently supports creating and fetching issues, labels, milestones, and gists. More services will be added to the library as they become available through the v3 API.
The org.eclipse.egit.github.core library requires Google Gson 1.6+ and Apache HttpComponents 4.1+ and the latest builds can be found on the GitHub Eclipse Hudson page.
Have you created something interesting with the GitHub Java API library? Let us know!
Written by
Related posts
Enhancing the GitHub Copilot ecosystem with Copilot Extensions, now in public beta
Whether you’re an individual developer looking to streamline your workflow or an organization aiming to integrate proprietary tools, GitHub Copilot Extensions now offers a platform to make that happen and to share your creations on the GitHub Marketplace.
First Look: Exploring OpenAI o1 in GitHub Copilot
We’ve tested integrating OpenAI o1-preview with GitHub Copilot. Here’s a first look at where we think it can add value to your day to day.
GitHub Availability Report: August 2024
In August, we experienced one incident that resulted in degraded performance across GitHub services.