Google Calendar Api v3在插入活动时禁止响应

时间:2016-03-31 11:17:57

标签: google-calendar-api

我有一个应用程序可以将其条目与Google日历同步。我正在使用Http Rest调用为用户使用脱机身份验证插入事件。这是我想要推送的Json,但是给出了403 Forbidden错误

{
  "summary": "4 p.m. - Public Course CMS",
  "start": {
    "date": "2016-03-30"
  },
  "end": {
    "date": "2016-03-30"
  },
  "reminders": {}
}

这导致403 Forbidden响应

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "forbidden",
    "message": "Forbidden"
   }
  ],
  "code": 403,
  "message": "Forbidden"
 }
}

我不知道它有什么问题。请帮忙。网址是

https://www.googleapis.com/calendar/v3/calendars/arcis.golf@gmail.com/events

我有包含访问令牌的授权标头

request.Headers.Add(HttpRequestHeader.Authorization, "Bearer " + accessToken);

0 个答案:

没有答案