On 7/28/07, Stian <[EMAIL PROTECTED]> wrote: > > > I'm relative new to PHP, and wonder what the AUTH_SERVICE_NAME > constant is in the example at > http://code.google.com/apis/calendar/developers_guide_php.html#AuthClientLogin > . Where do I set this?
The AUTH_SERVICE_NAME does not need to be set by you. It is a constant recorded in the code. For calendar, the value is 'cl', and the values used by the other services can be found here (though not all have classes in PHP): http://code.google.com/support/bin/answer.py?answer=62712&topic=10364 For the ClientLogin and AuthSub mechanisms of authentication, there are central authentication services which, upon successful authentication, hand out tokens for use when working with the individual services. The central authentication services need to know what service you are authenticating to, in order to know whether you should be authenticated and to make some decisions regarding token validity periods, etc. For ClientLogin, this is determined via the 'service' POST parameter that's passed to the ClientLogin service. AuthSub determines this based upon the 'scope' query parameter. Either way, if you're using the PHP client library -- you really don't need to worry about this much other than following the examples :) I want to update some events, and is currently using Magic cookie > authentication. I don't think that will do, or will it? Nope, magic cookie authentication will not allow for write access to the feeds. You will need to use ClientLogin authentication (for desktop apps, or server-side apps so long as you're not asking other users for their Google credentials), or AuthSub for multi-user web applications. Any help is much appreciated! > > Best, Stian Happy coding! Cheers, -Ryan > > -- http://go/w2w --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Calendar Data API" 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-calendar-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
