The Document List API allows you to batch ACL requests to save bandwidth.
Is there a similar capability using the Drive API?
There is a generalized batching solution in the new APIs and supported with Drive. See Is there a way to make batched calls using the Drive SDK? for an example of how to batch requests with Python. Most, if not all of the current API clients have batch support.
Related
I'm new in Codename one. I'm developing an application that connect to Google Drive. I`d want to know if the Drive API Client Library for Java is functional in Codename one. If not, can somebody give me an advice about how to manage gdrive from Codename one?
Thanks!!!
I have read documentation about HTTP requests
Codename One doesn't support the Android API. We have our own API. You can use native interfaces to access native functionality like the drive API. Some API's are already exposed via a cn1lib but the drive API isn't.
Does google drive use the broader google cloud storage infrastructure as it's backend? If it does is there any way to get the bucket metadata related to a drive account via an api call?
Whether it physically uses the same infrastructure or not, it doesn't logically. There's no bucket corresponding to a user's Drive, at least not publicly.
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.
I'm using the google client library to access the Google Drive API. I'd like to custom log all the request URI's, the request method as well as the response codes. Is there a built in mechanism to do this with the google client library?
Ideally, I could use the API as I am now and not have to modify each request but maybe add some sort of interceptor to the Drive object itself where I can record this data on every request that goes through this Drive service.
Any ideas?
Not sure that is exactly what you want but you could modify the log level of the API client in logging.properties
com.google.api.client.level = FINEST
I just came to know that DocumentsList API is depricated. So i thought of migrating my app to Drive and saw this page. I mostly use urls like https://docs.google.com/feeds/default/private/full/. So is it enough to replace them with new URL's like this https://www.googleapis.com/drive/v2/files/ ?
Just wanted to confirm is that all i need to takecare or am I missing anything. My App uses OAuth2 for authorization. Do I need to change anything in there too?
If you are constructing the requests yourself, you have to replace the URLs but also take into account that the responses from the Drive API will be JSON-formatted and not XML-formatted as in the Documents List API.
If instead you are using one of the Google-provided client libraries, you have to start using a newer client library, that you can download from https://developers.google.com/drive/downloads.
The migration guide is mostly a guide that maps methods from the Documents List API into methods of the Drive API and should be used as reference to know what is available and where.
Oauth 2.0 is fine. You can even use the same tokens you already have for Documents List v3.