This course will be retired on June 1, 2025.
Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
Making an API call is like connecting to a database for data. You setup a connection, make a request, and receive results. Some requests require authentication, and results are primarily received in either XML or JSON.
Additional Resources
Getting Started with GitHub API Documentation
Authentication Types
There are 3 ways an API may allow a connection.
- Public Endpoints no authentication needed. Simply request a url and receive the results.
- Basic Authentication such as a username and password or other credentials.
- Token-based Authentication such as OAuth. The application asks to share specific information between the applications, and when the user chooses to grant permission, a token is stored on the user's machine.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up