문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 | 다음 판 양쪽 다음 판 | ||
linux:grive2 [2019/11/20 22:41] kwon37xi |
linux:grive2 [2019/11/28 08:57] kwon37xi [사용] |
||
---|---|---|---|
줄 29: | 줄 29: | ||
</ | </ | ||
- | ===== 사용 | + | ===== API 인증 |
+ | * 2019년 11월 부터 Google Drive API 를 사용자가 작접 id와 secret 을 받아서 지정해줘야만 하게 되었다.(추후 바뀔 수 있음) | ||
+ | * https:// | ||
+ | 1 - Go to https:// | ||
+ | 2 - Search for Google Drive API and enable it. | ||
+ | 3 - 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. | ||
+ | |||
+ | Then you need to follow this repo README, download grive2, build and install. Then run | ||
+ | |||
+ | grive -a --id [client id] --secret [client secret] | ||
+ | |||
+ | On your Drive folder and it will probably work. | ||
+ | |||
+ | 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> | ||
+ | const std::string default_id | ||
+ | const std::string default_secret | ||
+ | </ | ||
+ | |||
+ | ===== 사용 ===== | ||
* 신규 동기화< | * 신규 동기화< | ||
mkdir SyncDir # 신규 동기화 디렉토리 생성 | mkdir SyncDir # 신규 동기화 디렉토리 생성 |