Using the Google Drive v3 Api, I would like to list all files that have been shared with a certain group.
When I add the following to the qparameter for files.list, an empty set is returned. Can anyone clarify that the {email_address} in writers query only accepts user email addresses and not group email addresses?
Is there any other way to list files shared to a group email using the Google Drive Api?
Edit:
It was working for a while and today it stopped returning results again. It seems that the Google Drive API team has changed something on this?
Google must have pushed a fix to the API, since it just started working...
Related
I would like to integrate Google Drive with my private website in such way that user will provide my website with his own Google Drive, and he could perform on my website such actions as: viewing, deleting, adding or editing files. Is is possible? What is needed to do such integration?
I read Google Drive API documentation and I checked it is possible to perform such actions as creating, reading, editing files. But I have no idea how to perform it on someones else private Google Drive.
The first thing you need to understand is that drive api is a rest api the response is returned in Json format. The google drive api is not going to give you any visual representation of a users drive account. For example your not going to be able to show them the google drive web application from your website. You will need to code the interface yoruself.
As for how to get permission we use something called Oauth2 to request consent for your application to access the users google drive account. It can be a little confusing in the beginning but there are a number of tutorials and QuickStart's which should help you get started.
I required to use google drive API to save and get image from company google drive.
I'm following this guide to get the token and currently successfully get the image via postman.
Because I'm using ./auth/drive scope, it required me to verify my application.
But I'll only use create and view api to access single google account. I'm not sure if I'm doing the things correctly.
It is possible to setup similar thing for one personal google account only so that it doesn't required to get the approval?
I have a few Google Map locations added at my business.google.com account.
I'm trying to find a way to request all of them from my account; to include them in my website.
I've already signed up for my API key, and added my trusted domain, but I haven't found a way to request all of them with the API without already knowing either their locations or place ID.
My goal here is to manage only one list at Google account to keep them updated. I don't want double-management, adding and editing them both at my Google account and my website database.
I've figured out that I can download my locations as cvs file, that could be then uploaded to my website database when a location is edited or updated. But is there any way to request a json with them directly with the javascript API from within my website domain in one ajax request?
E.g. 'https://maps.googleapis.com/maps/api/place/details/json?key=MY-KEY&someOtherParam=toGetThemAll'
Thanks in advance
You can look into Google My Business API:
https://developers.google.com/my-business/content/prereqs
There is a REST endpoint to get a list of locations related to one account:
https://developers.google.com/my-business/reference/rest/v3/accounts.locations/list
There are various examples provided in this link https://developers.google.com/admin-sdk/directory/v1/guides/search-users by Google. However, I can't seem to find what I am looking for. I want to pull all contacts that include phone numbers or city only. The search query doesn't seem to support something like addressStreet:isExists. Any inputs?
EDIT
When I view Contacts in my GMail, only those I created manually (have phone and address) are displayed. The ones automatically created by GMail (whenever an email is exchanged with someone GMail apparently creates a contact). When I pull contacts via Google Contacts API v3, I get thousands entries back, most of those are those automatically created ones.
I am using Google Drive API from Google App engine for java. I am searching the google docs with search string
Files.List request = service.files().list().setQ("title contains 'Donation'");
It returns only 2 files with title DonationThankYouLetterData and How to Create Awareness on Blood Donation
I failed to understand why it is not returning other files with title like
DonationThankYou_Anil Kumar _02-Aug-2013
Donation
All files are created by me so owner is same.
It could be a number of reasons...
Is there a nextPage link that you should be following. Drive doesn't guarantee to return all hits in a single response
Do you have the correct scope to access the file. Eg. if the first two files were created by your app, and the third was created in Drive, and your app only has drive.file scope.
To investigate further, you should ...
Go to https://developers.google.com/drive/v2/reference/files/get and retrieve the item for each file. Compare them to see if there is any obvious difference
Run the list without the query to confirm that all three files are indeed being returned
Also look at this answer Drive API files.list query with 'not' parameter returns empty pages which seems to suggest that "contains" is broken, but that doesn't seem to match your symptoms, based on the file names you used in your question.