0

I'm trying to make an autorun app with c++ that doesn't have an UI, but it will log into google drive when u plug in the USB drive. I was wondering if there was a way to do this, either by using google api, or by detecting the field forms on the login screen, and automatically filling them in. Also this is going to be strictly a private software.

emufossum13
  • 377
  • 1
  • 10
  • 21

1 Answers1

2

Add one part How do you make a HTTP request with C++? with two parts https://developers.google.com/drive/v2/reference/.

Shake lightly. Chill and serve.

Optionally add for flavor: https://developers.google.com/drive/auth/web-server

However, I'm unable to find a c++ oath2 library. The closest thing I found was https://code.google.com/p/twitcurl/. If you find an oath library, please comment on this.

UPDATE:

POCO has a OAuth 1.0 implementation seen here: https://github.com/pocoproject/poco/tree/develop/Net/samples/TwitterClient/src

Also, according to this landmark blog post, there are still many concerns about OAuth 2.0's security. The 1.0 implementation above is what I would attempt.

For more information on OAuth 2.0, see RFC6749 and RFC6750.

Community
  • 1
  • 1
Homer6
  • 15,034
  • 11
  • 61
  • 81