Google Contacts API V3, how to search - google-contacts-api

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.

Related

Google Contacts API V3 not returning title for automatic contact entries

I have an app that fetches a user's contacts from the Google Contacts V3 API after the user authenticates via OAuth2 (the requests are made using JSON). While my code works great in most circumstances, I have noticed that the API returns an empty title hash for contacts that get created automatically through emailing an address for the first time, which is less than ideal.
When I view "Other Contacts" under Google Contacts (where Google assigns these automatic contacts), these contacts seem to have an accurate title attribute. Is there a way I could potentially get access to this value? The response body doesn't seem to return this value within a contact entry.
Thanks.

Is there any way to get other contacts from Google People API? [duplicate]

I'm having a problem with the 2 APIs above. Given the next scenario: I have 2 different google accounts. One that doesn't use Google+ and a second account that uses Google+
When using Contacts API on the first account that doesn't use Google+ I can see all my contacts:
GET /m8/feeds/contacts/<email>/full
Same for the second account that uses Google+.
When I'm using People API for the first account that doesn't use Google+, I'm getting an empty response (actually I'm getting just the next sync token:
GET https://people.googleapis.com/v1/people/me/connections
With the next scope:
https://www.googleapis.com/auth/contacts
Returns:
{
"nextSyncToken": "CMe6...."
}
The same call for the second account (with Google+) works like a charm
The only difference between the 2 accounts is Google+, is it possible that People API only works for accounts with Google+? Or is it something else that I'm missing
I found the difference between the 2 APIs and it has nothing to do with the fact that one of the accounts is connected to Google+ or not
People API will only fetch the contacts that are under the account "My contacts" contacts, while Contacts API will also fetch the other contacts lists ("Other contacts", "Most contacts", ...)
The People API is the newer version.
From Google APIs related to People API page:
The Google Contacts API will be deprecated in the future. The People API is the recommended replacement for apps that read contact data.
It is also important to note that the People API does in fact allow the developer to use "other contacts" just like Contacts API did. In addition, when migrating you should not have to re-ask for user consent to the following:
https://www.google.com/m8/feeds
https://www.googleapis.com/auth/contacts
https://www.googleapis.com/auth/contacts.readonly
Please see these links for further reading:
https://developers.google.com/people/related-apis (Contacts API vs People API)
https://developers.google.com/people (Intro to People API)
I basically just copy/pasted most of this stuff but hopefully, some people find this helpful as I too was curious to find these answers :)

How can I search for files shared with a group?

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...

google reviews with places API - no data for business with hidden address?

I was trying to embed google plus reviews on my website using the google places api. The following link is the process I used to set this up.
http://gurutechnolabs.tumblr.com/post/112214772991/how-to-embed-google-reviews-using-google-places
When I enter https://maps.googleapis.com/maps/api/place/textsearch/json?key=yourAPIKey&query=YourPlace into the browser I don't get any data when I enter my business name. I do get data when I enter a different business name. I suspect the issue is my business address isn't public as I serve customers only at their location. Is this the issue and any way to use this feature with a hidden address? Thanks in advance.
If your business is defined as Service Area Buiseness, it will not be accessible via Places API search or Places API autocomplete.
If this is feasible, try to change the type of the business in Google My Business. Not sure if it will be possible to extract reviews by a place ID, however, it's not easy to figure out what is the place ID of your business.
Can I have the link to your business in Google Plus for further investigation?

Using Google API to find if a company has a website

I am looking for a solution that would tell me if a particular company has a website. The way I imagine using it is: I would send a phrase-based query to the API (for example "Salesforce Limited") and it would return a website if it has one in its database).
I checked Google Maps API and Google Places API but can's see if they provide website addresses for places.
I know Google displays a location on the right hand side if you type a name of the place and at times also has a website link referring to it:
example data I am after
Do you know if the website data can be accessed by any of the Google APIs and if not what could be an alternative way of obtaining such data?
Thanks
Kam