I'm trying to use google People API to search a person by her/his name field. Here is the code sample:
service = build('people', 'v1', credentials=creds)
request = service.people().searchContacts(pageSize=10, query="A", readMask="names")
print(request.body) # results in None, but there is a lot of contacts in my list starting from "A".
I used the following links:
https://developers.google.com/people/v1/contacts#python
https://googleapis.github.io/google-api-python-client/docs/dyn/people_v1.people.html#get
https://developers.google.com/people/quickstart/python
and the SCOPE is https://www.googleapis.com/auth/contacts.readonly.
I need a way to return a list of contacts using name mask (for ex, person with the name "Foo bar" should be found using "f", "F", "foo", and so on).