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

Reply via email to