This repository has been archived by the owner on Apr 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Home
GFoniX edited this page Jan 7, 2023
·
19 revisions
wget -O drive https://drive.google.com/uc?id=0B3X9GlR6Embnb095MGxEYmJhY2c
sudo install drive /usr/local/bin/drive
$ drive folder -t example
**Id: 0B-HvcBoheyBnZndncFFMN1B1bjA**
Title: example
Size: 0.0 B
Created: 2015-07-18 20:23:21
Modified: 2015-07-18 20:23:20
Owner: tesisquare pte
Shared: False
Parents: 0AOHvcBoheyBnUk9PVA
Folder 'example' created
$ drive upload -f soapui*.xml -p 0B-HvcBoheyBnZndncFFMN1B1bjA
Id: 0B-HvcBoheyBnZVJqOUtNVVl2S0k
Title: soapui-settings.xml
Size: 2.4 KB
Created: 2015-07-18 20:25:40
Modified: 2015-07-18 20:25:40
Owner: tesisquare pte
Md5sum: da8227a1a6eb3ef49ec2f2844b48ba56
Shared: False
Parents: 0B-HvcBoheyBnZndncFFMN1B1bjA
MIME Type: application/xml
Uploaded 'soapui-settings.xml' at 1.2 KB/s, total 2.4 KB
It seems that this app has been blocked so you can't get an authorization key by going to the URL that is presented when you run it. The following workaround seems to work:
- Go to https://developers.google.com/oauthplayground.
- Under the Drive API v3, select one of the following APIs:
- Click Authorize APIs
- Click Exchange Authorization Codes for Token
- Copy the resulting Access token will allow you to run gdrive with --access-token. For some reason the Refresh token does not seem to work with --refresh-token.
hi