Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用服务帐户和.NET插入Google日历项时出错_.net - Fatal编程技术网

使用服务帐户和.NET插入Google日历项时出错

使用服务帐户和.NET插入Google日历项时出错,.net,.net,当尝试将日历事件插入一个用户的帐户时,它返回错误表单“我为” 找不到Google.api.Requests.RequestError[404]错误[ 消息[未找到]位置[-]原因[未找到]域[全局] ] Google.api.Requests.RequestError 找不到[404] 错误[ 消息[未找到]位置[-]原因[未找到]域[全局] ] 你好运气好吗?我也面临同样的问题 public static Event insert(CalendarService service, st

当尝试将日历事件插入一个用户的帐户时,它返回错误表单“我为”

找不到Google.api.Requests.RequestError[404]错误[ 消息[未找到]位置[-]原因[未找到]域[全局] ]

Google.api.Requests.RequestError 找不到[404] 错误[ 消息[未找到]位置[-]原因[未找到]域[全局] ]


你好运气好吗?我也面临同样的问题
    public static Event insert(CalendarService service, string id, Event myEvent){    
Google.Apis.Calendar.v3.Data.Event calenderEvent = new Google.Apis.Calendar.v3.Data.Event();
calenderEvent.Summary = myEvent.Summary;
                //calenderEvent.Description = summary;
                //calenderEvent.Location = summary;
                calenderEvent.Start = new  Google.Apis.Calendar.v3.Data.EventDateTime
                {
                    DateTime = new DateTime(2018, 07, 07, 19, 00, 0),
                    //DateTime = DateTime.Now,
                    TimeZone = "(GMT+05:30) India Standard Time"//,
                                                                //TimeZone = "Europe/Istanbul"
                };
                calenderEvent.End = new Google.Apis.Calendar.v3.Data.EventDateTime
                {
                    DateTime = new DateTime(2018, 07, 07, 18, 00, 0),
                    //DateTime = DateTime.Now.AddHours(12),
                    TimeZone = "(GMT+05:30) India Standard Time"//,
                                                                //TimeZone = "Europe/Istanbul"
                };enter code here
var newEventRequest = service.Events.Insert(calenderEvent, id);
                newEventRequest.SendNotifications = true;
                var eventResult = newEventRequest.Execute();

                return eventResult;
}