사용자 도구

사이트 도구


linux:grive2

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
linux:grive2 [2019/11/28 08:57]
kwon37xi [사용]
linux:grive2 [2019/11/28 08:59] (현재)
kwon37xi [API 인증]
줄 33: 줄 33:
   * https://​github.com/​vitalif/​grive2/​issues/​287#​issuecomment-557704687   * https://​github.com/​vitalif/​grive2/​issues/​287#​issuecomment-557704687
  
-- Go to https://​console.developers.google.com/​apis/​library. Login with your Google account and create a new project on Google Cloud Platform. You can also use an existing one. +  ​- Go to https://​console.developers.google.com/​apis/​library. Login with your Google account and create a new project on Google Cloud Platform. You can also use an existing one. 
-- Search for Google Drive API and enable it. +  - Search for Google Drive API and enable it. 
-- Go to API Credentials page (https://​console.developers.google.com/​apis/​credentials) +  - Go to API Credentials page (https://​console.developers.google.com/​apis/​credentials) 
-- 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
-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 형태이다.
 +</​code>​
  
 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/​grive/​src/​main.cc +''​grive2/​grive/​src/​main.cc'' ​Lines 49 to 50 in 3929909
- +
-Lines 49 to 50 in 3929909+
 <code c> <code c>
  const std::string default_id ​           = "​615557989097-i93d4d1ojpen0m0dso18ldr6orjkidgf.apps.googleusercontent.com"​ ;   const std::string default_id ​           = "​615557989097-i93d4d1ojpen0m0dso18ldr6orjkidgf.apps.googleusercontent.com"​ ; 
linux/grive2.txt · 마지막으로 수정됨: 2019/11/28 08:59 저자 kwon37xi