Tsab ntawv teev npe
Thaum koj siv rclone nrog Google Drive hauv qhov kev teeb tsa ua ntej , koj siv rclone's client_id. Qhov no yog qhia rau txhua tus neeg siv rclone. Google muaj kev txwv thoob ntiaj teb rau tus lej ntawm cov lus nug ib pliag uas tuaj yeem ua tau rau ib tus neeg siv_id. rclone twb muaj qhov quota siab lawm, thiab kuv yuav txuas ntxiv tiv tauj Google kom paub tseeb tias nws siab txaus.
Kuv yuav ua li cas kuv tus kheej client_id rau Google Drive?
Nws raug pom zoo kom siv koj tus kheej tus ID neeg siv khoom, vim tias tus ID rclone uas twb muaj lawm feem ntau siv. Yog tias koj muaj ntau yam kev pabcuam khiav, nws raug pom zoo kom siv tus yuam sij API sib cais rau txhua qhov kev pabcuam. Tus lej Google uas twb muaj lawm yog 10 qhov kev lag luam ib ob , yog li nws raug nquahu kom khaws nws qis dua tus lej no, vim tias kev ua ntau tshaj qhov no yuav ua rau rclone ua haujlwm qeeb thiab ua rau qeeb.
Nov yog yuav ua li cas los tsim koj tus kheej Google Drive tus neeg siv ID rau rclone:
- Nkag mus nrog koj tus account GoogleGoogle API Console.Nws tsis muaj teeb meem uas koj siv Google Account. (tsis tas yuav yog tib Google Drive account koj xav nkag mus)
- Xaiv ib qhov project lossis tsim ib qho tshiab.
- Nrhiav hauv qab "Enable APIs and Services"
Drive", ces enable"Google Drive API". - Nyem "Credentials" nyob rau sab laug vaj huam sib luag (tsis yog "Tsim Daim Ntawv Pov Thawj" uas qhib lub wizard), ces nyem "Tsim Daim Ntawv Pov Thawj"
- Yog tias koj twb tau teeb tsa "Oauth Consent Screen", hla mus rau cov kauj ruam tom ntej; yog tias tsis yog, nyem lub pob "CONFIGURE CONSENT SCREEN" (ze rau sab xis saum toj ntawm lub vaj huam sib luag sab xis), tom qab ntawd xaiv "Sab nraud" thiab nyem "CREATE "; nyob rau hauv lub tom ntej no Nyob rau hauv lub screen, nkag mus rau ib tug "Application Name" ("rclone" yuav ua) thiab nias "Txuag" (tag nrho lwm yam ntaub ntawv yog xaiv tau).Nyem rau daim ntawv pov thawj ntawm sab laug vaj huam sib luag dua kom rov qab mus rau daim ntawv pov thawj.
(PS: Yog tias koj yog tus neeg siv GSuite, koj tuaj yeem xaiv "Internal" es tsis yog "External" saum toj no, tab sis qhov no tseem tsis tau sim / sau tseg).
- Nyem qhov "+ CREATE CREDENTIALS" khawm nyob rau sab saum toj ntawm qhov screen thiab xaiv "OAuth Client ID".
- Yog tias koj siv Google Account, xaiv hom ntawv thov "Desktop App" lossis "Lwm yam" (yog tias koj siv GSuite account) thiab nyem "Tsim". (npe npe zoo)
- Nws yuav qhia koj tus neeg siv khoom ID thiab tus neeg siv khoom zais cia.Nco ntsoov cov no.
- Mus rau "Oauth Consent Screen" thiab nias "Publish Application"
- Muab rclone nrog rau tus neeg siv khoom ID thiab tus neeg siv khoom zais cia.
Ceev faj
Nco ntsoov tias vim Google tsis ntev los no "txhim kho kev ruaj ntseg", koj yuav tsum theoretically "xa koj app rau kev pov thawj" thiab tos lub lis piam (!) rau lawv cov lus teb;
Hauv kev xyaum, koj tuaj yeem siv tus neeg siv khoom id thiab tus neeg siv khoom zais cia ncaj qha nrog rclone, qhov teeb meem nkaus xwb yog thaum koj txuas ntawm qhov browser nws pom qhov kev lees paub txaus ntshai tiag tiag kom rclone tuaj yeem tau txais nws tus lej token (tab sis qhov no tsuas yog tshwm sim thaum lub sijhawm nyob deb. configuration, tsis muaj teeb meem loj).
Vam tias, tsab xov xwm "Yuav Ua Li Cas Thov Google Drive Client ID thiab Secret Key API?" uas tau muab qhia rau ntawm Chen Weiliang lub blog ( https://www.chenweiliang.com/ ) yuav pab tau koj.
Xav qhia qhov txuas ntawm tsab xov xwm no: https://www.chenweiliang.com/cwl-1971.html
