Google Drive API への認証が完了し、認証トークンを受け取りました
次に、次のように URI を作成します
AccessUri = new stringBuilder("https://api.dropbox.com/1/oauth/access_token")
With AccessUri
.AppendFormat("?code={0}", oAuth.UrlEncode(AccessToken)) 'Received in first part
.AppendFormat("&client_id={0}", oAuth.UrlEncode(ConsumerKey)) 'Received from google API
.AppendFormat("&client_secret={0}", oAuth.UrlEncode(ConsumerSecret)) 'Received from google API
.AppendFormat("&grant_type={0}", oAuth.UrlEncode("authorization_code"))
.AppendFormat("&redirect_uri={0}", oAuth.UrlEncode(RedirectURL)) 'using http:localhost/authorise.html
End With
dim uriAccess as uri = new uri(AccessUri.tostring)
これをアドレス バーに貼り付けると、Error 405 Method Not Allowed が表示されます。VB.netでリクエストとして送信すると、同じエラーが発生します
https://code.google.com/apis/console/で何かをする必要がありますか?
何か案は