2013-07-02 19 views

cevap

1

aşağıdaki toplu isteği, eventId2 günceller, eventId1 alır ve calendarId ile tanımlanır kalender altında yeni bir etkinlik oluşturur.

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-- 
+0

/batch isteği için kullanılacak tam url nedir. "Http://www.googleapis.com/batch" kullanmayı denedim ama başarısız oldu ... Lütfen bana bildirin – Jagadeesh

+0

Bitiş noktası: http://www.googleapis.com/batch – ade

0

uç nokta ben toplu istekleri Takvim ne zaman benim için çalışıyor

https://www.googleapis.com/batch

olduğunu. Ben bir sorun vardı benim son sınır token ile o zaman ben daha sonra -- yoktu. Bu nedenle her simge -- ile başlar ve sonuncusu ise sonunda -- bulunur. @Burcu Dogan'ın örnek gösterdiği gibi.