"Gdrive 403 User Rate Limit Exceeded Error" 修訂間的差異
出自 CH 維基百科
(已建立頁面,內容為 " Gdrive 出現 403 User Rate Limit Exceeded Error 解決方法 修改Gdrive Source Source code 的API來源 第一步 == 下載GO編譯器 wget https://dl.googl...") |
|||
行 1: | 行 1: | ||
Gdrive 出現 403 User Rate Limit Exceeded Error 解決方法 | Gdrive 出現 403 User Rate Limit Exceeded Error 解決方法 | ||
修改Gdrive Source Source code 的API來源 | 修改Gdrive Source Source code 的API來源 | ||
+ | ---- | ||
+ | 第一步 | ||
− | + | 下載GO編譯器 | |
+ | wget https://dl.google.com/go/go1.11.5.linux-amd64.tar.gz | ||
+ | |||
+ | 解壓並移動目錄 | ||
+ | tar -xzf go1.11.5.linux-amd64.tar.gz | ||
+ | mv go /usr/local | ||
+ | |||
+ | 建立 GO 工作目錄 | ||
+ | mkdir -p ~/projects/{bin,src} == | ||
+ | |||
+ | 設定GO編譯環境 | ||
+ | vi /etc/profile.d/path.sh | ||
+ | /usr/local/go/bin 將入path.sh裡 | ||
+ | |||
+ | vi ~/.bash_profile | ||
+ | export GOBIN="$HOME/projects/bin" 將入.bash_profile裡 | ||
+ | export GOPATH="$HOME/projects/src" 將入.bash_profile裡 | ||
+ | |||
+ | source /etc/profile && source ~/.bash_profile | ||
+ | |||
+ | 查看GO版本 | ||
+ | [root@host ~]# go version | ||
+ | go version go1.11.5 | ||
+ | linux/amd64== | ||
+ | |||
+ | 第二步 | ||
− | + | 建立Gdrive的Google API | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | 第三步 | |
− | |||
− | |||
− | + | 下載Gdrive Source | |
− | + | cd ~/projects/ | |
− | + | go get github.com/prasmussen/gdrive | |
+ | |||
+ | 貼上建立的API ID 密碼 | ||
+ | cd ~/projects/src/src/github.com/prasmussen/gdrive/ | ||
+ | vi handlers_drive.go | ||
+ | |||
+ | const ClientId = "3671xxxxxxxxxxxxxxxxxxxxxxeg.apps.googleusercontent.com" | ||
+ | const ClientSecret = "1qsNxxxxxxxxhoO" | ||
+ | |||
+ | 開始編譯 | ||
+ | cd ~/projects/src/src/github.com/prasmussen/gdrive/ | ||
+ | go build | ||
− | + | 第四步 | |
+ | 將編譯好的gdrive放到/usr/bin/gdrive | ||
+ | cp gdrive /usr/bin/gdrive | ||
+ | |||
+ | 刪除舊的token | ||
+ | cd ~/.gdrive | ||
+ | rm token_v2.json | ||
− | + | 參考來源 | |
− | + | https://serverkurma.com/linux/google-drive-error-403-user-rate-limit-exceeded-error/ | |
− | |||
− | linux/ |
於 2019年3月22日 (五) 17:16 的最新修訂
Gdrive 出現 403 User Rate Limit Exceeded Error 解決方法 修改Gdrive Source Source code 的API來源
第一步
下載GO編譯器 wget https://dl.google.com/go/go1.11.5.linux-amd64.tar.gz 解壓並移動目錄 tar -xzf go1.11.5.linux-amd64.tar.gz mv go /usr/local 建立 GO 工作目錄 mkdir -p ~/projects/{bin,src} == 設定GO編譯環境 vi /etc/profile.d/path.sh /usr/local/go/bin 將入path.sh裡 vi ~/.bash_profile export GOBIN="$HOME/projects/bin" 將入.bash_profile裡 export GOPATH="$HOME/projects/src" 將入.bash_profile裡 source /etc/profile && source ~/.bash_profile 查看GO版本 [root@host ~]# go version go version go1.11.5 linux/amd64==
第二步
建立Gdrive的Google API
第三步
下載Gdrive Source cd ~/projects/ go get github.com/prasmussen/gdrive 貼上建立的API ID 密碼 cd ~/projects/src/src/github.com/prasmussen/gdrive/ vi handlers_drive.go const ClientId = "3671xxxxxxxxxxxxxxxxxxxxxxeg.apps.googleusercontent.com" const ClientSecret = "1qsNxxxxxxxxhoO" 開始編譯 cd ~/projects/src/src/github.com/prasmussen/gdrive/ go build
第四步 將編譯好的gdrive放到/usr/bin/gdrive cp gdrive /usr/bin/gdrive 刪除舊的token cd ~/.gdrive rm token_v2.json
參考來源 https://serverkurma.com/linux/google-drive-error-403-user-rate-limit-exceeded-error/