I am learning the Google Drive API and developing a program in Qt C ++ (using OAuth2), so I need to create queries, but I have not found how to do this.
For example, if I make a request - https://www.googleapis.com/oauth2/v1/userinfo?access_token=MY_ACCESS_TOKEN , everything works fine - I get a response.
Question: how to make a SIMILAR request for Google Drive?
1) how can I get a list of folders and files
2) how to create a folder / file, etc.
For example, in a POST request "Https://www.googleapis.com/drive/v1/files&title=pets&mimeType=application/vnd.google-apps.folder"
I get
"error": {"errors": [{"domain": "global", "reason": "parseError", "message": "Parse Error"}], "code": 400, "message": "Parse Error "}}
how to get a list of folders and files, for example, etc., I donβt understand
Any opinions / examples are welcome!
early
source share