vb.net - Missing libraries for using oAuth2 with google drive on .Net -


i trying example code working in vb .net imported example oauth.

the example on google drive website here imported sample code vb.net https://developers.google.com/drive/credentials

it has these 2 references

 imports google.apis.oauth2.v2  imports google.apis.oauth2.v2.data 

i cannot find libraries in downloads libraries above , getting errors here in code:

    dim credentials iauthorizationstate = exchangecode(authorizationcode)     dim userinfo userinfo = getuserinfo(credentials) dim userid [string] = userinfo.id emailaddress = userinfo.email 

as userinfo not defined anywhere. in missing .dll files?

and

    dim userinfoservice new oauth2service(getauthenticatorfromstate(credentials))     dim userinfo userinfo = nothing 

oauth2service cannot found?

what doing wrong here?

the library looking has dll reference, have extract twice.

once extract initial download (http://code.google.com/p/google-api-dotnet-client/wiki/apis#google_oauth2_api), there should few zip files in folder, along "lib" , "dependencies" 1 of them should be:

google-oauth2-v2-rev38-csharp-1.3.0-beta-src.zip or google-oauth2-v2-rev38-csharp-1.3.0-beta-bin.zip enter image description here

extract zip file has binary, , google.apis.oauth2.v2 dll should there import project.

this should fix error. it's not obvious, took me bit figure out situation. how apis download .net library structured.

i hope helps.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -