久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <legend id='biEVE'><style id='biEVE'><dir id='biEVE'><q id='biEVE'></q></dir></style></legend>

      <small id='biEVE'></small><noframes id='biEVE'>

        • <bdo id='biEVE'></bdo><ul id='biEVE'></ul>

      1. <tfoot id='biEVE'></tfoot>

        <i id='biEVE'><tr id='biEVE'><dt id='biEVE'><q id='biEVE'><span id='biEVE'><b id='biEVE'><form id='biEVE'><ins id='biEVE'></ins><ul id='biEVE'></ul><sub id='biEVE'></sub></form><legend id='biEVE'></legend><bdo id='biEVE'><pre id='biEVE'><center id='biEVE'></center></pre></bdo></b><th id='biEVE'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='biEVE'><tfoot id='biEVE'></tfoot><dl id='biEVE'><fieldset id='biEVE'></fieldset></dl></div>

        Google 云端硬盤 - 無法通過經過身份驗證的 (OAut

        Google Drive - Unable to download thumbnails with an authenticated (OAuth2) request(Google 云端硬盤 - 無法通過經過身份驗證的 (OAuth2) 請求下載縮略圖)
        • <bdo id='jniV7'></bdo><ul id='jniV7'></ul>

          <small id='jniV7'></small><noframes id='jniV7'>

        • <tfoot id='jniV7'></tfoot>
            <legend id='jniV7'><style id='jniV7'><dir id='jniV7'><q id='jniV7'></q></dir></style></legend>

                  <i id='jniV7'><tr id='jniV7'><dt id='jniV7'><q id='jniV7'><span id='jniV7'><b id='jniV7'><form id='jniV7'><ins id='jniV7'></ins><ul id='jniV7'></ul><sub id='jniV7'></sub></form><legend id='jniV7'></legend><bdo id='jniV7'><pre id='jniV7'><center id='jniV7'></center></pre></bdo></b><th id='jniV7'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='jniV7'><tfoot id='jniV7'></tfoot><dl id='jniV7'><fieldset id='jniV7'></fieldset></dl></div>
                    <tbody id='jniV7'></tbody>
                  本文介紹了Google 云端硬盤 - 無法通過經過身份驗證的 (OAuth2) 請求下載縮略圖的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  對于所有 Google 文檔,我無法從文件響應返回的 ThumbnailLink 屬性下載縮略圖.

                  For all Google Docs, I'm not able to download the thumbnail image from the ThumbnailLink property returned with a file response.

                  我總是收到403 - Forbidden"錯誤頁面,其中包含類似以下的消息:

                  I always receive a '403 - Forbidden' error page with a message similar to this:

                  您的客戶端無權從該服務器獲取 URL/thumbnailLink.

                  Your client does not have permission to get URL /thumbnailLink from this server.

                  (客戶端IP地址:clientIP)

                  未經授權的用戶

                  我嘗試使用谷歌提供的類MediaDownloader.cs,我也嘗試使用以下代碼下載它:

                  I try to use the class MediaDownloader.cs provided by Google and I also try to download it by using this code:

                  using (Stream stream = service.HttpClient.GetStreamAsync(p_DownloadUrl).Result) {
                      StreamUtilities.Copy(p_WriteDelegate, stream.Read);
                  }
                  

                  其中服務"是正確實例化的 DriveService (IClientService) 對象.我可以用它來下載文件或提出任何其他請求.我使用Drive.Readonly"范圍.

                  where 'service' is a DriveService (IClientService) object properly instantiated. I can use it to download the file or make any other requests. I use the 'Drive.Readonly' scope.

                  下載 Word、Excel、PDF 等文檔的縮略圖沒有任何問題,因為這些鏈接是公開的,不需要任何類型的身份驗證.

                  I didn't have any issue to download the Thumbnail for a Word, Excel, PDF, etc. documents, because these links are public and doesn't require any kind of authentication.

                  我做錯了什么?

                  是否可以下載 Google Docs 文檔的縮略圖?

                  Is it possible to download the thumbnail for a Google Docs document?

                  推薦答案

                  我們最近進行了更改以解決此問題.請再次嘗試您的代碼,看看您是否仍然收到此錯誤.我能夠運行以下代碼來成功下載我的 Google 文檔的縮略圖.

                  We've recently made a change to fix this issue. Please try your code again and see if you are still getting this error. I was able to run the following code to successfully download a thumbnail of my Google Document.

                  # Get oauth credentials
                  ...
                  # Authorize an http object
                  http = httplib2.Http()
                  http = credentials.authorize(http)
                  
                  drive_service = build('drive', 'v2', http=http)
                  
                  # Google Document type ID
                  docId = '1ns9x5BMIZAeUR-eXerqgpaHBBGkl_-_KCVpVoV5opn8'
                  files = drive_service.files().get(fileId=docId).execute()
                  
                  thumbnailLink = files['thumbnailLink']
                  print 'Downloading thumbnail at: ', thumbnailLink
                  response, content = http.request(thumbnailLink)
                  print response.status
                  
                  with open('thumbnail.jpg', 'wb') as f:
                    f.write(content)
                  

                  這篇關于Google 云端硬盤 - 無法通過經過身份驗證的 (OAuth2) 請求下載縮略圖的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Ignore whitespace while reading XML(讀取 XML 時忽略空格)
                  XML to LINQ with Checking Null Elements(帶有檢查空元素的 XML 到 LINQ)
                  Reading XML with unclosed tags in C#(在 C# 中讀取帶有未閉合標簽的 XML)
                  extracting just page text using HTMLAgilityPack(使用 HTMLAgilityPack 僅提取頁面文本)
                  Using C#, how can we pull attribute values from an XML Schema file and output that onto a CSV file?(使用 C#,我們如何從 XML Schema 文件中提取屬性值并將其輸出到 CSV 文件中?)
                  Parse XML with LINQ to get child elements(使用 LINQ 解析 XML 以獲取子元素)
                    <bdo id='ic6XK'></bdo><ul id='ic6XK'></ul>

                      <tbody id='ic6XK'></tbody>
                      • <i id='ic6XK'><tr id='ic6XK'><dt id='ic6XK'><q id='ic6XK'><span id='ic6XK'><b id='ic6XK'><form id='ic6XK'><ins id='ic6XK'></ins><ul id='ic6XK'></ul><sub id='ic6XK'></sub></form><legend id='ic6XK'></legend><bdo id='ic6XK'><pre id='ic6XK'><center id='ic6XK'></center></pre></bdo></b><th id='ic6XK'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='ic6XK'><tfoot id='ic6XK'></tfoot><dl id='ic6XK'><fieldset id='ic6XK'></fieldset></dl></div>

                        <small id='ic6XK'></small><noframes id='ic6XK'>

                        <legend id='ic6XK'><style id='ic6XK'><dir id='ic6XK'><q id='ic6XK'></q></dir></style></legend>
                        1. <tfoot id='ic6XK'></tfoot>

                            主站蜘蛛池模板: 亚洲精品乱码久久久久久按摩观 | 久久香焦 | 美女福利网站 | 五月槐花香 | 日韩视频免费看 | 国产精品精品视频一区二区三区 | 在线观看h视频 | 激情五月婷婷 | 女同av亚洲女人天堂 | 欧美a级成人淫片免费看 | 欧洲妇女成人淫片aaa视频 | 国产精品视频久久久 | 中文字幕国产视频 | 欧美激情在线观看一区二区三区 | 久久久噜噜噜久久中文字幕色伊伊 | 免费在线视频a | 亚洲成人久久久 | 国内精品久久精品 | 中文字幕亚洲视频 | 欧美一级高清片 | 亚洲综合在线播放 | 国产激情一区二区三区 | 日韩综合在线 | 这里有精品| 亚洲高清成人在线 | 性在线| 福利色导航 | 第一av| 久久国内精品 | 精品91久久| 中文字幕在线精品 | 午夜久久| 国产成人综合一区二区三区 | 超碰8| 99视频在线| 亚洲免费人成在线视频观看 | 97精品超碰一区二区三区 | 国产精品国产三级国产aⅴ中文 | 日日操夜夜操天天操 | 一区二区三区四区电影 | 国产极品车模吞精高潮呻吟 |