Google api Google日历API服务令牌仅具有reader accessRole

Google api Google日历API服务令牌仅具有reader accessRole,google-api,google-calendar-api,jwt,google-api-nodejs-client,Google Api,Google Calendar Api,Jwt,Google Api Nodejs Client,我正在访问Google Calendar API,并使用服务令牌对apps for domains帐户拥有的日历进行身份验证。当我调用calendar.events.list时,会得到以下响应: { kind: 'calendar#events', etag: [snip], summary: [snip], description: [snip], updated: '2014-11-16T12:33:06.434Z', timeZone: 'Europe/London',

我正在访问Google Calendar API,并使用服务令牌对apps for domains帐户拥有的日历进行身份验证。当我调用calendar.events.list时,会得到以下响应:

{ kind: 'calendar#events',
  etag: [snip],
  summary: [snip],
  description: [snip],
  updated: '2014-11-16T12:33:06.434Z',
  timeZone: 'Europe/London',
  accessRole: 'reader',                <------ this is the problem
  defaultReminders: [],
  nextSyncToken: [snip],
  items: [] }
{kind:'日历#事件',
埃塔格:[剪断],
小结:[剪报],
描述:[剪断],
更新:“2014-11-16T12:33:06.434Z”,
时区:“欧洲/伦敦”,

accessRole:“reader”,web UI将只允许您与来自与您的Google Apps帐户相同域的用户共享日历。要使用服务帐户,您必须在Apps Admin中授予它权限,如下所述(在步骤4中,选项的名称是错误的,我记不清了,但这是页面中的第三个链接)。

请注意,这需要一个谷歌应用程序域管理员,而我不是。我通过让服务帐户自己创建一个日历(通过API),然后作为第二个所有者添加我的个人地址,从而避免了这个问题。