I finally used the 2lo authentication in java, and it works....now i'm 
trying to replicate tha same concept with Google Apps Script using 
UrlFetchApp, 
But it doesn't work. How i can proceed? Here is my code

function myFunction2() {
  var base = "https://www.google.com/m8/feeds/";;
  var fetchArgs = googleOAuth_("contacts", base);
  var url = base + 
"contacts/default/[email protected]";
  var result = UrlFetchApp.fetch(url, fetchArgs);
  Logger.log(result.getContentText());
}




function googleOAuth_(name,scope) {
  var oAuthConfig = UrlFetchApp.addOAuthService(name);
  oAuthConfig.setConsumerKey("mydomain.com");
  oAuthConfig.setConsumerSecret("xxxxxxxxxx");
  return {oAuthServiceName:name, oAuthUseToken:"always",};
}






Il giorno giovedì 7 giugno 2012 13:23:26 UTC+2, David Hardwick ha scritto:
>
> You would wasn't to use 2lo authentication, can get it through a 
> market place install (make it a private app).  Then you will have 
> permissions to impersonate anyone in the domain.


Il giorno giovedì 7 giugno 2012 13:23:26 UTC+2, David Hardwick ha scritto:
>
> You would wasn't to use 2lo authentication, can get it through a 
> market place install (make it a private app).  Then you will have 
> permissions to impersonate anyone in the domain.

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