2017-06-29 13 views
1

私はGoogleカレンダーを実施し、以下のエラープロンプト:404実行は、予期しない結果を返しました:404

コード:

Dim service As New CalendarService("cal1") 
Dim entry As EventEntry = New EventEntry() 

entry.Title.Text = Title 

entry.Content.Content = Desc 

Dim eventLocation As Where = New Where() 


eventLocation.ValueString = Location 
entry.Locations.Add(eventLocation) 

'Dim dtstartdatetime As DateTime = New DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 3, 30, 0) 
Dim dtstartdatetime As DateTime = StartTime 
'Dim dtenddatetime As DateTime = New DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 4, 30, 0) 
Dim dtenddatetime As DateTime = EndTime 
Dim eventTime As [When] = New [When](dtstartdatetime, dtenddatetime) 
entry.Times.Add(eventTime) 

If (UserName <> "" And UserName.Length > 0) Then 
    service.setUserCredentials(UserName, Password) 
End If 

Dim uripath As String = "http://www.google.com/calendar/feeds/" + UserName + "/private/full" 

Dim postUri = New Uri("http://www.google.com/calendar/feeds/default/private/full") 

postUri = New Uri(uripath) 

Dim requestFactory As GDataGAuthRequestFactory = service.RequestFactory 
requestFactory.CreateRequest(GDataRequestType.Insert, postUri) 

Dim insertedEntry As AtomEntry = service.Insert(postUri, entry) 
認証要求の実行が予期しない結果が返さ

+0

「http:// www.google.com/calendar/feeds/default/private/full'は書き込みアドレスですか。 doc:https://developers.google.com/google-apps/calendar/quickstart/dotnet – Mederic

+1

ご協力ありがとうございます。 住所(http://www.google.com/calendar/feeds/default/private/full)は古いバージョン用で、2014年に閉鎖されました。 https://gsuiteupdates.googleblog.com/2014/10 /deprecated-google-calendar-apis-v1-v2.html – John

答えて

関連する問題