Hello John,

Are you using a specific client library to consume the API? If using the
GData Java client library, the gContact:relation element is defined in this
class<http://code.google.com/p/gdata-java-client/source/browse/trunk/java/src/com/google/gdata/data/contacts/Relation.java>
.
Unfortunately, this client library doesn't natively support OAuth 2.0. You
can however specify the OAuth 2.0 access token by doing this:

    myService.setHeader("Authorization", "Bearer " + <OAUTH2_TOKEN>);

You will need to catch the 403 exceptions and refresh the token manually.

Best,
Alain

On Wed, Aug 31, 2011 at 4:45 PM, John Borland <[email protected]>wrote:

> No, the oauth 2.0 URL does not work in the service.getFeed() call (didn't
> expect it to, that was a long shot).
>
>  --
> 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

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

Reply via email to