You can actually use Google Drive Rest API which uses these authorization protocols:
- OAuth 2.0 to authorize requests, or
- if your application uses Google Sign-in, some aspects of authorization are handled for you.
You can follow this general authorization process for all application types as given in Authorizing requests with OAuth 2.0:
- When you create your application, you register it using the Google Developers Console.
- Activate the Drive API in the Google Developers Console.
- When your application needs access to user data, it asks Google for a particular scope of access.
- Google displays a consent screen to the user, asking them to authorize your application to request some of their data.
- If the user approves, then Google gives your application a short-lived access token.
- Your application requests user data, attaching the access token to the request.
- If Google determines that your request and the token are valid, it returns the requested data.
In addition to that, if your app requires access to any other Google APIs, you can add scopes as given in OAuth 2.0 scope information for the Drive API detailed in the documentation.
For more information, please go through the given documentations and you may also add Using OAuth 2.0 to Access Google APIs in your references with regards to Google API scopes.