Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Swift Essentials

You're reading from   Swift Essentials Get up and running lightning fast with this practical guide to building applications with Swift

Arrow left icon
Product type Paperback
Published in Dec 2014
Publisher
ISBN-13 9781784396701
Length 228 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Bandlem Limited Bandlem Limited
Author Profile Icon Bandlem Limited
Bandlem Limited
Alex Blewitt Alex Blewitt
Author Profile Icon Alex Blewitt
Alex Blewitt
Arrow right icon
View More author details
Toc

An overview of the GitHub API

The GitHub API provides a REST-based interface using JSON to return information about users and repositories. Version 3 of the API is documented at https://developer.github.com/v3/ and is the version used in this book.

Tip

The API is rate limited; at the time of writing, anonymous requests can be made up to sixty times per hour, while logged in users have a higher limit. The code repository for this book has sample responses that can be used for testing and development purposes.

The root endpoint

The main entry point to GitHub is the root endpoint. For the main GitHub site this is https://api.github.com and for GitHub Enterprise installations it is https://hostname.example.org/api/v3/ along with user credentials. The endpoint provides a collection of URLs that can be used to find specific resources:

{
 ...
  "issue_search_url": "https://api.github.com/search/issues?q={query}{&page,per_page,sort,order}",
  "issues_url": "https...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image