gpt4 book ai didi

json - Google Calendar API 不适用于 curl 客户端请求

转载 作者:行者123 更新时间:2023-12-02 05:38:20 26 4
gpt4 key购买 nike

我正在尝试使用 curl 创建一个谷歌日历事件,这是我的请求,但它不起作用我不知道我犯了什么错误:

curl "https://www.googleapis.com/calendar/v3/calendars/{CalID}/events?access_token={access_token}" -H "Content-Type: application/json" -X POST -d '{ "end": { "start": { "date": "2012-08-01", "dateTime": "2012-08-01 22:47:31.893205", "timeZone": "Asia/Calcutta" }, "end": { "date": "2012-08-08", "dateTime": "2012-08-08 22:47:31.893205", "timeZone": "Asia/Calcutta" }, "attendees": [ { "email": "dosi@iitpzx.com" }, { "email": "test@gmail.com" } ], "reminders": { "overrides": [ { "method": "email", "minutes": 10 } ] } }' -v

我不断收到 Bad request Error。有人能告诉我这个请求有什么问题吗??

最佳答案

终于得到了正确的请求:

curl "https://www.googleapis.com/calendar/v3/calendars/{CalendarID}/events?access_token={Access_token}" -H "Content-Type: application/json" -d ' { "start": { "dateTime": "2012-07-11T12:47:31+05:30" }, "end": { "dateTime": "2012-07-11T22:47:31+05:30" }, "attendees": [ { "email": "{Attendee_Email}" } ], "reminders": { "overrides":[ ] } }' -v

关于json - Google Calendar API 不适用于 curl 客户端请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11359563/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com