我已通过 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)
如果我将其粘贴到地址栏中,我会收到错误 405 Method Not Allowed。如果我在 VB.net 中将其作为请求发送,我会收到相同的错误
我需要在https://code.google.com/apis/console/中做任何事情吗
有任何想法吗