The following picker example illustrates an image selector/uploader page that
could be opened from an Open or Upload Drive files button in a web app. This
example demonstrates how to set the AppId
value, and incorporates some useful
picker features such as enabling multi-select, hiding the navigation pane, and
choosing the user account with the app's current OAuth 2.0 token:
The AppId
and the client ID, used for authorizing access to a user's files,
must be contained in the same app. Within the
API Console, AppId
can be identified
as the "Project number" on the "IAM & Admin" > "Settings" page, in the
developer console.
After obtaining the file ID from the Google Picker when opening files, an
application can then fetch the file metadata and download the file content as
described in the reference documentation for
files.get
.