Yêu cầu đợt sau, nhận được eventId1, cập nhật eventId2 và tạo ra một sự kiện mới theo lịch được xác định với 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--
Nguồn
2013-07-11 14:50:48
url hoàn chỉnh sẽ được sử dụng cho yêu cầu/batch là gì. Tôi đã thử sử dụng "http://www.googleapis.com/batch" nhưng không thành công ... Vui lòng cho tôi biết – Jagadeesh
Điểm cuối là: http://www.googleapis.com/batch – ade