I started playing the the contacts API today to maybe use in a new Chrome extension, and I have what may be a simple question.
First, I downloaded the sample extension for using oauth with contacts: http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/oauth_contacts/ All good - after authenticating, it is accessing my contacts. In the source is the following code: oauth.sendSignedRequest(url, onContacts, { 'parameters' : { 'alt' : 'json', 'max-results' : 100 } }); Changing max-results to 10 works as it should, so I reason that this is where I can add/edit all query parameters. Looking at the 3.0 reference docs here: http://code.google.com/apis/contacts/docs/3.0/reference.html#Parameters I see that you can set a parameter 'q' that is "Fulltext query on contacts data fields." Great, so I change the above code to: oauth.sendSignedRequest(url, onContacts, { 'parameters' : { 'q' : 'chris', 'alt' : 'json', 'max-results' : 100 } }); No change... the same list of contacts is being returned, when it should be searching for the term 'chris' within the contact data. At least that is what the parameter reference documentation says it should do. As I understand it, v2.0 of the API did not allow fulltext search, but v3.0 does? How would I go about searching by contact name, or any other field like address? Declaring a 'q' parameter seems to do nothing. Am I doing something wrong? Thanks for any help you can give. -- You received this message because you are subscribed to the Google Groups "Google Contacts, Shared Contacts and User Profiles APIs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://code.google.com/apis/contacts/community/forum.html
