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.

Reply via email to