Google has made its powerful web services—like Drive, Maps, and Gmail—available to users worldwide for free. Not only that, but Google has opened the power of these services up to developers with full-featured APIs. Among them is the Google Drive API. This API allows you to access the users' Google Drive in your apps, with the ability to save and retrieve files from their Drive.
In this Coffee Break Course, Reggie Dawson will teach you how the Google Drive API works and how you can use it in your projects. By the end, you'll know how to authorize and access the Google Drive API, how to get a listing of files, and how to display a properly formatted picker for files in Drive.
1. How to Use the Google Drive API
[MUSIC] In addition to the numerous services Google offers, they have also opened up the APIs to nearly all of these same services. What that means for developers is that we can now leverage these considerable resources for our own projects. Once you understand how to interact with APIs, using them in your projects becomes much easier. In this coffee break course you will learn how to use the Google Drive API. We will look at a sample project and learn how we can interact with Google Drive. We will then learn how to authorize our app to use the API. After that we will go over the methods that we can use to access our Google Drive. The first time we do this, we will return a text listing of the files in our Google Drive. Then we will learn to use the Google Drive picker A.P.I. to display a pop-up of our Google Drive, so that we can choose our file from the list. After this course, you should be comfortable using the Google Drive API in your own apps.