Create Calendar Resource - Error 403

38 views
Skip to first unread message

Alessandro Lo Presti

unread,
Jul 12, 2011, 12:24:14 PM7/12/11
to google-app...@googlegroups.com
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("admini...@myDomain.com", "myPass")

        CalService.Credentials.ClientToken = CalService.QueryClientLoginToken

        Dim Entry As AppsExtendedEntry = CalService.CreateCalendarResource("CR-NYC-14-12-BR", "TestName", "TestDescription", "TestType")

any suggestion?

Claudio Cherubino

unread,
Jul 12, 2011, 5:09:32 PM7/12/11
to google-app...@googlegroups.com
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:


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

--
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 google-app...@googlegroups.com.
To unsubscribe from this group, send email to google-apps-mgmt...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-apps-mgmt-apis?hl=en.

Reply all
Reply to author
Forward
0 new messages