我想獲得在VB.Net中工作的示例代碼我導入了示例Oauth。在.Net上使用oAuth2與谷歌驅動器丟失圖書館
谷歌的驅動器網站上的例子是在這裏從我進口的樣例代碼到VB.Net https://developers.google.com/drive/credentials
它有兩個參考
Imports Google.Apis.Oauth2.v2
Imports Google.Apis.Oauth2.v2.Data
我找不到在下載的庫庫上方,我收到錯誤在這裏的代碼:
Dim credentials As IAuthorizationState = ExchangeCode(authorizationCode)
Dim userInfo As Userinfo = GetUserInfo(credentials)
Dim userId As [String] = userInfo.Id
emailAddress = userInfo.Email
隨着用戶信息不被任何定義。它是否在缺少的.dll文件中?
而且
Dim userInfoService As New Oauth2Service(GetAuthenticatorFromState(credentials))
Dim userInfo As Userinfo = Nothing
Oauth2Service無法找到?
我在這裏做錯了什麼?
我添加了所有可以找到的庫,包括OAuth2。它仍然無法找到OAuth2Service和Userinfo。有什麼想法嗎? 進口Google.Apis.Oauth2.v2 進口Google.Apis.Oauth2.v2.Data – 2013-05-10 16:02:12