Hi Alessandro,

403 errors are due to invalid credentials
and CalService.setUserCredentials() is all you need to perform
authentication using ClientLogin.
The next line is unnecessary, please remove it and try again.
For reference, you can check the .NET samples at:

http://code.google.com/googleapps/domain/calendar_resource/docs/1.0/calendar_resource_developers_guide_protocol.html

They use C#, but it should be easy to adapt them for VB.NET.
Claudio

On Tue, Jul 12, 2011 at 9:24 AM, Alessandro Lo Presti <
[email protected]> wrote:

> When i try to create a new calendar resource (Google Apps for Business) i
> get a 403 error. Here's my code:
>
> Dim CalService As New CalendarResourceService("**myDomain.com",
> "MyAppName")
>
>         CalService.setUserCredentials(**"[email protected]",
> "myPass")
>
>         CalService.Credentials.**ClientToken = CalService.**
> QueryClientLoginToken
>
>         Dim Entry As AppsExtendedEntry = CalService.**
> CreateCalendarResource("CR-**NYC-14-12-BR", "TestName", "TestDescription",
> "TestType")
>
> any suggestion?
>
> --
> 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/-/GXO5vBMlMtoJ.
> 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