Thanks Alain, It's working now.
Is service deprecated for all the Google APIs ? Jeremi On Fri, Dec 16, 2011 at 3:25 AM, Alain Vongsouvanh <[email protected]> wrote: > Hello, > > Please do not use the contacts.service module as it has been deprecated and > follow the developer's guide: > > > query = gdata.contacts.client.ContactsQuery() > > > query.updated_min = updated_min > feed = gd_client.GetContacts(q = query) > > > Best, > Alain > > > On Thu, Dec 15, 2011 at 12:25 AM, Jeremi Joslin <[email protected]> > wrote: >> >> Hello, >> >> So here is my code: >> >> query = gdata.contacts.service.ContactsQuery(text_query = email) >> logging.warning(query.ToUri()) >> feed = client.GetContactsFeed(uri=query.ToUri()) >> >> >> >> Here is the log I'm getting: >> >> WARNING:root:/m8/feeds/contacts/default/full?q=bilel%40xyz.com >> send: 'GET >> https://www.google.com/m8/feeds/contacts/default/full?q=bilel%40xyz.com&xoauth_requestor_id=admin%40demo1.wemakeprojects.com >> HTTP/1.1\r\nAccept-Encoding: identity\r\nHost: >> www.google.com\r\nContent-Type: application/atom+xml\r\nAuthorization: OAuth >> realm="", oauth_version="1.0", oauth_nonce="35878214", >> oauth_timestamp="1323937035", oauth_signature="webjE5uotzon54ZsSWrPKXXX%3D", >> oauth_consumer_key="8673122XXXX.apps.googleusercontent.com", >> oauth_signature_method="HMAC-SHA1"\r\nUser-Agent: None >> GData-Python/2.0.14\r\n\r\n' >> reply: 'HTTP/1.1 200 OK\r\n' >> header: Content-Type: application/atom+xml; charset=UTF-8 >> header: Expires: Thu, 15 Dec 2011 08:17:14 GMT >> header: Date: Thu, 15 Dec 2011 08:17:14 GMT >> header: Cache-Control: private, max-age=0, must-revalidate, no-transform >> header: Vary: Accept, X-GData-Authorization, GData-Version >> header: GData-Version: 1.0 >> header: Last-Modified: Thu, 15 Dec 2011 08:17:14 GMT >> header: X-Content-Type-Options: nosniff >> header: X-Frame-Options: SAMEORIGIN >> header: X-XSS-Protection: 1; mode=block >> header: Server: GSE >> header: Transfer-Encoding: chunked >> >> >> The url generated seems right ( from what I can see >> on http://code.google.com/apis/contacts/docs/3.0/developers_guide.html#retrieving_with_query >> http://code.google.com/apis/contacts/docs/3.0/reference.html#Parameters and >> http://code.google.com/a/google.com/p/apps-api-issues/issues/detail?id=503): >> /m8/feeds/contacts/default/full?q=bilel%40xyz.com >> >> The issue is that this query, instead of returning only the matching >> contact, it's returning all my contact list. I tried the same query on >> google contact ui, and it's only returning 1 contact. >> >> Any idea on what is wrong ? >> >> Regards, >> Jeremi >> >> -- >> 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 > > > > > -- > Alain Vongsouvanh | Developer Programs Engineer > > -- > 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 -- 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
