c# - Alternative to Google Drive SDK with less dependencies -


i'd use google drive api in c# desktop application. however, i've found official google sdk on nuget have more dependencies i'm comfortable (adding vs2010 project adds 10 additional nuget packages). fear these dependencies clash other dependencies solution grows.

  1. is there alternative approach utilizes less dependencies?
  2. can utilize different oauth 2.0 library or must use google's oauth sdk? there special google's oauth 2.0 implementation hinder ability use alternative oauth 2.0 library?

is there alternative approach utilizes less dependencies?

you write own api using httpclient combined drive api. api uses simple get/post/put/delete/patch http methods change files in google drive.

can utilize different oauth 2.0 library or must use google's oauth sdk?

depends. if wrote own, can use (or write) oauth client. http methods must include oauth information in requests, writing own gives type of access.

if looking actual product recommendation, off topic question (do not ask #5) stack overflow.

update

let talk how oauth works @ very high level. once user authorizes code impersonate (for lack of better terminology), authorization code, use exchange token.

the token important part. if pre-build framework not have way specify token doesn't matter.

if wanted authenticate request yourself, using c#, when you make call access google drive api, you'd want add authorization google headers (or querystring, don't use querystring):

get /plus/v1/people/me http/1.1 authorization: bearer 1/ffbgrnjru1fqd44azqt3zg host: googleapis.com 

Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -