What are we going to build?
In this tutorial, you’ll learn how to integrate
GitHub, the best place to share code with friends, co-workers, classmates, and total strangers, into your mobile app. Over three million people use GitHub to build amazing things together.
GitHub API Plug-in can make it easier for you to use the GitHub API. It comes with a ready-to-run sample application.
The ready-to-run app makes it very easy to start using the
GitHub API. To add the plug-in:
- From the builder, select
CREATE NEW > From Plug-in.
- Find the
Programmingsection, then check “GitHub API”.
- Click “Import selected plug-ins”.
- You’ll be asked whether you want to set the file containing API keys used by the service. Check the box and click “Apply settings”:
To use the API, you also need to have a GitHub account (https://github.com/users). Under your account, you should create an application to get your
client_secret keys. You also have to specify the
GitHub_Search page URL as the
If you’re using libraries version 3.0 or higher, the
URLwill look as following:
Gists tab, you’ll see a list of your gists (if any), and if you tap any of them, you’ll see its content and comments.
Under the hood
Let’s have a look at one of the services used in the
Other services are defined in a similar manner.
Mapping the UI to the Services
The final part of the app design is to map the service parameters to the UI components.
All the custom functionality can be found in