Hi Claudio, Thanks so much for the clarification and the prompt response. Do you have a sample anywhere of how to do 3 legged Oauth in either C# or VB.Net ? I was only able to find the link below which has Java, Python and PHP only for 3 legged.
http://code.google.com/apis/gdata/docs/auth/oauth.html Thanks. On Mon, Jul 18, 2011 at 2:41 PM, Claudio Cherubino <[email protected]>wrote: > Hi Anthony, > > The Multidomain Provisioning API doesn't support 2-legged OAuth, but only > 3-legged OAuth, as per the documentation: > > > http://code.google.com/googleapps/domain/gdata_provisioning_api_v2.0_developers_protocol.html#3LO_Tokens > > Claudio > > > On Sun, Jul 17, 2011 at 10:47 PM, Anthony Smith <[email protected]>wrote: > >> We get a 401 Unauthorized error, even when the permissions have been >> granted within the Google Apps control panel, so what I'm asking is how to >> structure the call so the 2 legged OAuth works with >> the MultiDomainManagementService. >> >> Thanks >> >> >> On Mon, Jul 18, 2011 at 4:57 AM, Claudio Cherubino <[email protected] >> > wrote: >> >>> Hi Anthony, >>> >>> What exactly is the problem with that code? You get an error or it >>> returns incorrect results? >>> >>> Claudio >>> >>> >>> On Fri, Jul 15, 2011 at 10:31 PM, Anthony <[email protected]> wrote: >>> >>>> Thanks Claudio, >>>> >>>> I'm not sure how to call RetrieveAllDomainUsers using 2 Legged OAuth >>>> (I'm a Google Apps Marketplace developer). Code posted below does not work, >>>> so hopefully you can point me in the right direction to get a read only >>>> list >>>> of all users in a domain, no matter what subdomain they belong to. >>>> >>>> ' create an OAuth factory to use >>>> Dim requestFactory As New GOAuthRequestFactory("CS", "MyApp") >>>> requestFactory.ConsumerKey = >>>> System.Configuration.ConfigurationManager.AppSettings("GoogleAppsConsumerKey") >>>> requestFactory.ConsumerSecret = >>>> System.Configuration.ConfigurationManager.AppSettings("GoogleAppsConsumerSecret") >>>> Dim newService As New >>>> MultiDomainManagementService(UserData.GOOGLE_APPS_DOMAIN, "MyApp") >>>> newService.RequestFactory = requestFactory >>>> Dim newFeed As AppsExtendedFeed = >>>> newService.RetrieveAllDomainUsers(UserData.GOOGLE_APPS_DOMAIN) >>>> For Each entry As AppsExtendedEntry In newFeed.Entries >>>> 'Do Stuff >>>> Next >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Google Apps Domain Information and Management APIs" group. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msg/google-apps-mgmt-apis/-/iKnLnaD-_JsJ. >>>> >>>> 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://groups.google.com/group/google-apps-mgmt-apis?hl=en. >>>> >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Google Apps Domain Information and Management 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://groups.google.com/group/google-apps-mgmt-apis?hl=en. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Apps Domain Information and Management 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://groups.google.com/group/google-apps-mgmt-apis?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Google Apps Domain Information and Management 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://groups.google.com/group/google-apps-mgmt-apis?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Apps Domain Information and Management 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://groups.google.com/group/google-apps-mgmt-apis?hl=en.
