Making a RESTful Request4:52 with Alena Holligan
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.
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.
You need to sign up for Treehouse in order to download course files.Sign up