다음 배치 요청은 eventId2을 업데이트는 eventId1을 얻고 calendarId로 식별되는 달력에 새 이벤트를 만듭니다.
POST /batch HTTP/1.1
Authorization: /*Auth token*/
Host: host
Content-Type: multipart/mixed; boundary=batch_foobarbaz
Content-Length: total_content_length
--batch_foobarbaz
Content-Type: application/http
Content-ID: <item1:[email protected]>
GET /calendar/v3/calendars/calendarId/events/eventId1
--batch_foobarbaz
Content-Type: application/http
Content-ID: <item2:[email protected]>
PUT /calendar/v3/calendars/calendarId/events/eventId2
Content-Type: application/json
Content-Length: part_content_length
{{ body }}
--batch_foobarbaz
Content-Type: application/http
Content-ID: <item3:[email protected]>
POST /calendar/v3/calendars/calendarId/events
Content-Type: application/json
Content-Length: part_content_length
{{ body }}
--batch_foobarbaz--
/일괄 요청에 사용되는 전체 URL은 무엇입니까? "http://www.googleapis.com/batch"를 사용해 보았지만 실패했습니다 ... 알려주세요. – Jagadeesh
엔드 포인트는 다음과 같습니다. http://www.googleapis.com/batch – ade