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
The top 10 gifts for the developer in your life
Whether you’re hunting for the perfect gift for your significant other, the colleague you drew in the office gift exchange, or maybe (just maybe) even for yourself, we’ve got you covered with our top 10 gifts that any developer would love.
Congratulations to the winners of the 2024 Gaady Awards
The Gaady Awards are like the Emmy Awards for the field of digital accessibility. And, just like the Emmys, the Gaadys are a reason to celebrate! On November 21, GitHub was honored to roll out the red carpet for the accessibility community at our San Francisco headquarters.
Students: Start building your skills with the GitHub Foundations certification
The GitHub Foundations Certification exam fee is now waived for all students verified through GitHub Education.