문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 | 다음 판 양쪽 다음 판 | ||
linux:grive2 [2019/11/28 08:57] kwon37xi [사용] |
linux:grive2 [2019/11/28 08:59] kwon37xi [API 인증] |
||
---|---|---|---|
줄 33: | 줄 33: | ||
* https:// | * https:// | ||
- | 1 - Go to https:// | + | |
- | 2 - Search for Google Drive API and enable it. | + | - Search for Google Drive API and enable it. |
- | 3 - Go to API Credentials page (https:// | + | - Go to API Credentials page (https:// |
- | 3 - Create a new OAuth Client credential. You will be provided with a id and a secret. Save both because you gonna need it for grive2. | + | - Create a new OAuth Client credential. You will be provided with a id and a secret. Save both because you gonna need it for grive2. |
- | + | | |
- | Then you need to follow this repo README, download grive2, build and install. Then run | + | |
+ | <code sh> | ||
grive -a --id [client id] --secret [client secret] | grive -a --id [client id] --secret [client secret] | ||
+ | # id 는 긴코드값.apps.googleusercontent.com 형태이다. | ||
+ | </ | ||
On your Drive folder and it will probably work. | On your Drive folder and it will probably work. | ||
줄 46: | 줄 48: | ||
If you want to use your ID and secret to build grive2 instead of using above command, you can edit the keys in | If you want to use your ID and secret to build grive2 instead of using above command, you can edit the keys in | ||
- | grive2/ | + | '' |
- | + | ||
- | Lines 49 to 50 in 3929909 | + | |
<code c> | <code c> | ||
const std::string default_id | const std::string default_id |