Answer the question
In order to leave comments, you need to log in
How to sync a file through Google Drive API?
I have an application written in C++ and Qt5. It creates the file I need. How to create "upload/download" to/from Google Driv'a, respectively, taking into account the fact that there is a Google account login/password. You need to create a folder on the disk at the root and upload the file to it.
In which direction to dig?
Answer the question
In order to leave comments, you need to log in
Well, you should probably start by reading the Google Drive API documentation .
You don't need a username and password.
Authentication is done using OAuth 2.0.
The first thing you need to do is to create an application through the Google API Console , get your application details and connect the Google Drive API to it.
I will describe one of the authentication methods using a confirmation code below.
https://accounts.google.com/o/oauth2/auth?scope={scope}&redirect_uri={redirect_uri}&response_type=code&client_id={client_id}
Authorization: Bearer <полученный access_token>
Content-Type: application/json
{
"title": "Название папки"
"mimeType": "application/vnd.google-apps.folder"
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question