현재 Google은 Google 캘린더를 다루는 하나의 iPhone 응용 프로그램을 개발 중입니다. 달력 이벤트를 서버 측에 동기화 할 필요가있었습니다. 모든 것이 잘 작동합니다.Google 캘린더 푸시 알림 : 승인되지 않은 웹 훅 통화
그러나 우리가 요청을 게시 할 때마다 푸시 알림, 우리는 this process
을 다음과 같다 : 매개 변수 헤더에서
"id":Unique string (channel id) ,
"type": "web_hook",
"address": "https://abc-api.herokuapp.com/user/notifications"
와
https://www.googleapis.com/calendar/v3/calendars/[email protected]/events/watch
, 우리는
Authorization : **Bearer 'Access_token'**
을 보내는
및 내용 유형 : JSON은
우리는 이미 구글 API를 콘솔 access_token은 사용자의 계정 액세스 토큰
에서 승인 된 도메인으로 도메인을 추가했다.
"승인되지 않은 웹 훅 통화"오류가 발생합니다.
{
"error": {
"errors": [
{
"domain": "global",
"reason": "push.webhookUrlUnauthorized",
"message": "Unauthorized WebHook callback channel: https://abc-api.herokuapp.com/user/notifications"
}
],
"code": 401,
"message": "Unauthorized WebHook callback channel: https://abc-api.herokuapp.com/user/notifications"
}
}
누구든지 문제를 해결할 수 있도록 도와 줄 수 있습니까?