Hello, Are you using 2-Legged OAuth as the authorization mechanism? If this is the case, you will need to specify on behalf of which user the request is being made by adding a xoauth_requestor_id query parameter: http://code.google.com/apis/gdata/docs/auth/oauth.html#2LeggedOAuth
Also, please make sure that the Contacts API scopes has been authorized for the consumer key and secret: http://support.google.com/a/bin/answer.py?hl=en&answer=162105 Best, Alain On Sun, Dec 11, 2011 at 1:48 PM, murray <[email protected]> wrote: > Folks, > > I am developing an Application for the Google Apps market, I it is > my intention > that my app with allow anyone who installs it view the their "Contacts" for > the Google Apps domain. > > This is the code I am using > > ContactsService service = new > ContactsService("myapp"); > > GoogleOAuthParameters oauthParameters = new > GoogleOAuthParameters(); > > oauthParameters.setOAuthConsumerKey(consumerKey); > > oauthParameters.setOAuthConsumerSecret(consumerSecret); > > service.setOAuthCredentials(oauthParameters, new > OAuthHmacSha1Signer()); > > String sFeedUrl = " > https://www.google.com/m8/feeds/contacts/[email protected]/full"; > > URL feedUrl = new URL(sFeedUrl); > > ContactFeed uf = service.getFeed(feedUrl, ContactFeed.class); > > > The Error I get is ... > > java.lang.NullPointerException: No authentication header information > > If I hard code the the AccessToken I got from Google Oauth Playground.. it > works > but I guess issue ow do I access the token for users that in stlalled my > app? > > I thought the Apps Market to care of whitelisting me? > > -- > 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
