Yes.. I've seen a few posts claiming Calendars API doesn't yet support service accounts but I can't be sure what to believe.
I've been following a few other threads such as:
https://groups.google.com/forum/embed/?place=forum/google-calendar-api#!topic/google-calendar-api/pdNI7s1FSC4From
that it seems it is possible to do 2-Legged Authorization with OAUTH
2.0 however it's not clear how to authenticate as a service account.
All these examples call for authentication through consumer key, consumer secret, etc. (as in this example:
http://googleappsdeveloper.blogspot.ca/2011/12/calendar-api-v3-2-legged-oauth-java.html)
However, to get those things you must set-up a google apps account for your domain and then allow access to the desired APIs (
http://support.google.com/a/bin/answer.py?hl=en&answer=162106)
and i believe this is to establish your website as an 'organization'
because service accounts are only supposed to be able to manage users
that belong to your 'organization'.
Though, even if you get this
to work through those examples, you aren't using the private key or
service account client ID that you created in the API Console (so what
was the point of that?)
And in my case, where I need to run my code
from is on another domain.. and it won't let me add said domain to the
list of allowed API Clients (unless I set up another Google Apps account
for this domain?)
From what I have gathered, I do need to setup a
Google Apps account for this other domain (where my code is to be
running from) just so that it is established as a 'vendor' thus making
the domain name the new 'consumer key' which is then added to the
Allowed API Clients list.
My question then is, since I would have two
Google Apps accounts, what account do I use to create an API Key and
service account, and what google app account/organization does this need
to belong to?
Am I creating a whole new google app account, and new
user under this new organization and service account/api key just so
that I can go through this account to get at the users of of the main
google apps account/domain?
I am in the process of trying all of these things, if anyone has any insight, please share!