문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
linux:grive2 [2019/11/20 22:41] kwon37xi |
linux:grive2 [2019/11/28 08:59] kwon37xi [API 인증] |
||
---|---|---|---|
줄 29: | 줄 29: | ||
</ | </ | ||
- | ===== 사용 | + | ===== API 인증 |
+ | * 2019년 11월 부터 Google Drive API 를 사용자가 작접 id와 secret 을 받아서 지정해줘야만 하게 되었다.(추후 바뀔 수 있음) | ||
+ | * https:// | ||
+ | - Go to https:// | ||
+ | - Search for Google Drive API and enable it. | ||
+ | - Go to API Credentials page (https:// | ||
+ | - 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] | ||
+ | # id 는 긴코드값.apps.googleusercontent.com 형태이다. | ||
+ | </ | ||
+ | |||
+ | 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 | ||
+ | |||
+ | '' | ||
+ | <code c> | ||
+ | const std::string default_id | ||
+ | const std::string default_secret | ||
+ | </ | ||
+ | |||
+ | ===== 사용 ===== | ||
* 신규 동기화< | * 신규 동기화< | ||
mkdir SyncDir # 신규 동기화 디렉토리 생성 | mkdir SyncDir # 신규 동기화 디렉토리 생성 |