I need some help. I am currently trying to initiate a service using the 
latest BaseClientService.Initializer, which does NOT include the 
"Authenticator" parameter. I have valid Oauth2 parameters and the Token and 
I simply cannot figure out how to make the Service login. 

My only guess is to use the .OauthToken parameter when creating the 
Request, but it still throws a 401 Login Error

Here is a sample of the code (in VB.Net) 

' Create the service.
>
>             Dim service = New DirectoryService(New 
>> BaseClientService.Initializer With { _
>
>                                                .ApplicationName = 
>> applicationName _
>
>             })
>
>
>>             'Create the request
>
>             Dim listReq = service.Users.List()
>
>             listReq.OauthToken = GoogleToken
>
>             listReq.Customer = "<valid_domain_admin>"
>
>             listReq.Domain = "<valid_domain>"
>
>             listReq.CreateRequest()
>
>             Dim Users As Users = listReq.Execute()
>
>
>>             For Each user As User In Users.UsersValue
>
>                 WriteMonitor(user.Addresses, False)
>
>             Next
>
>


Richard

-- 
You received this message because you are subscribed to the Google Groups 
"OAuth" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to