Flutter Google Drive Integration - google-drive-api

I've been learning flutter for few days now and I wanted to make an app that uses google drive integration. I couldn't find a way to make it work.

check this package. You can use this package and look for API endpoints from official Google APIs.

Be careful not to immediately integrate something with Google Drive, because from November 2019 Google wants to abandon the possibility of using some of the primordial features of Google Drive API;

Related

How do I migrate from the Google Documents List API to the Drive API?

The Google Documents List API is scheduled to be shut down on April 20, 2015 and I need to migrate my code to use the Google Drive API instead. How do I go about this migration?
Refer to the migration guide determine you how to translate calls to the Documents List API to their corresponding calls in the Drive API. Refer to the Drive API’s documentation for information on how to download libraries and get started.
Be aware that support for older authorization methods (ClientLogin, AuthSub, and OAuth 1.0) are also scheduled to be shut down at the same time. If you are currently using these methods please also migrate to OAuth2 at the same time.

Do you need to migrate to Drive API when using https://spreadsheets.google.com/feeds/

The 22nd of January, I received an email with the subject 'Important: Steps to migrate from discontinued Documents List API' from Google Apps .
Important: Steps to migrate from discontinued Documents List API
Hello administrators,
We recently communicated that Documents List API will be discontinued on April 20, 2015. This change means that service calls for this API will no longer be supported, and any Google Apps features that are implemented using this API will no longer function.
Our records indicate that you may have an application that uses Documents List API, and we recommend that you migrate to Drive API, which has comparable
functionality, as soon as possible.
Here's what you need to do:
Determine if you have an application that makes requests to these
types of URLs:
https://docs.google.com/feeds/
https://docs.googleusercontent.com/
https://spreadsheets.google.com/feeds/
Migrate the applications to Drive
API. If you have questions
about migration, please contact Google Apps for Work Support.
Sincerely, The Google Apps for Work Team
I think it says that applications using https://spreadsheets.google.com/feeds/ should migrate to the new Drive API. But in the new Drive API, this URL is used too:
https://developers.google.com/google-apps/spreadsheets/#sheets_api_urls_visibilities_and_projections
Is there a typo somewhere in the URL either in the email or Drive API documentation?
Or is this email saying that when you determined you used any of these URL's you're OK?
PS: I opened a case at Google but I fear a late response, so I asked here.
Short answer is no.
The Docslist API is being discontinued because it has been replaced by the Drive API. In the case of the Spreadsheet API, there is no replacement API (yet - maybe one day), so it remains supported.
The only gotcha is that at some point, only OAuth 2 will be supported for authentication/authorisation so if you're using OAuth 1 or u/p, you have some work to do.
The official Google response is that the Spreadsheets API will continue to function after the 20 April shutdown:
"Apologies for the confusing email. The sheets API is not yet deprecated and will continue to operate beyond the April shutdowns."
https://code.google.com/a/google.com/p/apps-api-issues/issues/detail?id=3709

Understanding the authorization flow with Google Drive and Google Play Services

I have gone through Quickstart with Google Drive and I have also used Google Play Services. The docs for Google Drive outline the process of how the authorization flow works. The docs also indicate that developers should not use Drive initiated authorization although it appears that the Quickstart sample app does exactly that. I am left with the impression that Google prefers that the developer handle all the details of authorization.
Yet after trying out sample code that uses Google Play Services (but not for Google Drive), I am left with the impression that Google wants developers to use Google Play Services to handle all the authorization. It seems that Google Play Services simplify the authorization process significantly. Although the docs don't say this, I found elsewhere online that GoogleAuthUtil.getToken manages how access and refresh tokens are retrieved, especially after they expire.
Basically, the issue I am struggling with to understand is whether the Google Drive docs for the API are out of date and Google wants us to rely upon Google Play Services. There seems to be a lot of complexity in the Google Drive authorization process that Google Play Services has eliminated. At the same time, the docs for Google Drive API has been available for over half a year, so it makes me question why Google hasn't updated these docs to show any reflection on how Google Play Services are used with it.
Any insight into this would be appreciated.
The recommended approach for authorization on Android is using Google Play Services. The Android quickstart guide on the Google Drive SDK documentation covers exactly that:
https://developers.google.com/drive/quickstart-android
The Google Drive docs are out of date and Google should really update them. Retrieving tokens and authenticating users should be done using Google Play Services. The only thing you should be using the Google Drive API for is accessing the Google Drive service. Google Play Services handles all the details of authenticating users, retrieving access and refresh tokens and handling all the errors that can arise.

How can I build a Desktop client for Google Drive?

I want to build desktop application for Windows OS and use Google Drive to save some data in the cloud. After reading Google Drive SDK I found that only Web-applications, were installed from Chrome Web Store are allowed to use API and have access to data on Google Drive.
So my question: do I have any way to build native client (C++, Windows) for Google Drive? I know about hacks with using Google Docs API - but they can stop working any time, and I want something stable. Why Google team do not allow me create desktop application for their service? I have support of many other cloud storages and they do not have such restrictions.
Thanks.
For now you will have to use the (older) Google Document List API which provides full read-write and list access to Google Drive. (Google Drive and the former Google Docs use the same data)
So until we extend the capabilities of the current Drive API to cover the Google Document List use case you should use that instead.
EDIT: We just launched the v2 of the Google Drive SDK so you should now use that instead.
I have been working on a similar problem. I have realized that there is no straight forward way for doing this. Google Drive SDK is not easy to work with and how someone can simplify the process of connecting desktop application to Google drive shortly. I know this is not much help, but I am looking for a soltuion as well.
Here is some links that I have come across, haven't solved my problem either, but if you come to a solution please let us know PLEASE:
How to make GUI Client to upload file in java
Using Java APIs for downloading file from the Google Drive
http://www.coderanch.com/t/643120/Servlets/java/upload-file-drop-box-file

How can an IOS app access Google Drive files

Does anyone know how if IOS apps can access files stored on Google Drive?
I did not find what I was looking for on https://developers.google.com/drive/
thanks
Andy
The API for Google Drive is now released for Objective C. You can find it here:
http://code.google.com/p/google-api-objectivec-client/
Google Drive App for iOS will be release soon, is what was said in some articles. See below.
http://www.gottabemobile.com/2012/04/24/google-drive-for-iphone-and-ipad-coming-soon/
http://www.readwriteweb.com/archives/full-sized_screenshots_of_the_google_drive_ipad_ap.php
I think the generic Google GTL Library (Google APIs Client Library for Objective-C - http://code.google.com/p/google-api-objectivec-client/ ) is going to include some generated code for Drive access. Drive SDK docs seem to link there but the code is still missing. Doc is also a bit inconsistent regarding iOS native apps:
"Apps will not have any API access to files unless the app has been installed in Chrome Web Store. To test an app during development, you must first create a listing and install it."
Nico.
Yep although not directly through Objective C you would need to interface with Ruby, Python, PHP, or Java.
Here is a list of Examples: https://developers.google.com/drive/examples/index
http://itunes.apple.com/us/app/idocs-hd-pro-for-google-docs/id498653441?mt=8, I found this App
can access google drive files on iPad, maybe google docs api can
You can use the Google Data APIs Objective-C Client Library to access files stored in Google Drive using the Documents List API.
The library also includes a complete sample: http://code.google.com/p/gdata-objectivec-client/source/browse/#svn%2Ftrunk%2FExamples%2FDocsSample
"Google APIs Client Library for Objective-C" has been depreciated by Google and is only working for apps already on AppStore.
New Implementation for accessing Google Drive API for iOS using "Google APIs Client Library for Objective-C For REST".
Here is the working implementation for accessing Google Drive Files in iOS using "Google APIs Client Library for Objective-C For REST" library : https://stackoverflow.com/a/41649210/1999368