Google API CPP客戶端庫是否使用服務帳戶支持授權?Google API CPP客戶端 - 使用服務帳戶
我無法找到如何使用CPP客戶端庫時從https://github.com/google/google-api-cpp-client/
提供的樣品只能用客戶端密鑰用於安裝的應用程序演示使用本服務的客戶爲例
flow_.reset(OAuth2AuthorizationFlow::MakeFlowFromClientSecretsPath(client_secrets_file, config_->NewDefaultTransportOrDie(), &status));
我發現此鏈接http://www.example-code.com/unicodeCpp/http_xoauth2_access_token.asp爲c + +服務帳戶。但我不確定這是否是您正在尋找的那個。它應該與http://www.daimto.com/google-drive-api-with-a-service-account/ – SGC