This document explains how to implement OAuth 2.0 authorization to access Google APIs via applications running on devices like TVs, game consoles, and printers. More specifically, this flow is designed for devices that either do not have access to a browser or have limited input capabilities.
Also you can review the Allowed Scopes for the Drive API.
[https://www.googleapis.com/auth/drive.file]
Create new Drive files, or modify existing files, that you open with an app or that the user shares with an app while using the Google Picker API or the app's file picker.
[https://www.googleapis.com/auth/drive.appdata]
View and manage the app's own configuration data in your Google Drive.