私は何時間も試してきましたが、うまくいきません。次のコードを使用します(VB)
Private Async Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim credential As UserCredential = Await GoogleWebAuthorizationBroker.AuthorizeAsync(New ClientSecrets With {.ClientId = "my key", .ClientSecret = "my secret"}, New String() {BooksService.Scope.Books}, "user", CancellationToken.None, New FileDataStore("Books.ListMyLibrary"))
Dim service As New BooksService(New BaseClientService.Initializer With {.HttpClientInitializer = credential, .ApplicationName = "LibraryX"})
'Dim bookselve As Bookshelves = Await service.Mylibrary.Bookshelves.List.ExecuteAsync
Dim mm = service.Volumes.Get("9780330441230")
End Sub
本に関する情報が得られない (The Camel Club、David Baldacci)
誰か助けてくれませんか?
こんにちは、スティーブン
20131106
私はいくつかの変更を加えました:
Private Async Sub Form1_Load(sender As Object, e As EventArgs) ハンドル MyBase.Load
Dim credential As UserCredential = Await GoogleWebAuthorizationBroker.AuthorizeAsync(New ClientSecrets With {.ClientId = "my key", .ClientSecret = "my secret"},
New String() {BooksService.Scope.Books}, "user", CancellationToken.None, New FileDataStore("Books.ListMyLibrary"))
Dim service As New BooksService(New BaseClientService.Initializer With {.HttpClientInitializer = credential, .ApplicationName = "LibraryX"})
'Dim bookselve As Bookshelves = Await service.Mylibrary.Bookshelves.List.ExecuteAsync
Try
rslt = Await service.Volumes.Get("9780330441230").ExecuteAsync
Dim y As Integer = 0
Catch gaex As Google.GoogleApiException
ErrorMessageTextBox.Text = gaex.Message
Catch ex As AggregateException
ErrorMessageTextBox.Text = ex.Message
End Try
End Sub
しかし、リクエストの結果は次のとおりです。
enter code here
Google.Apis.Requests.RequestError ボリューム ID が見つかりませんでした。[404] エラー [ メッセージ [ボリューム ID が見つかりませんでした。] 場所 [ - ] 理由 [notFound] ドメイン [グローバル] ]
Google から書籍情報を取得するために必要な VolumeId は何ですか??