Proxy Google: Docs List

headers = "Authorization": "Bearer YOUR_ACCESS_TOKEN" params = "q": "mimeType='application/vnd.google-apps.document'", "fields": "files(id, name, createdTime)"

response = requests.get( "https://www.googleapis.com/drive/v3/files", headers=headers, params=params, proxies=proxies ) Proxy Google Docs List

Then your client calls: GET http://api.yourdomain.com/drive/files?q=mimeType='application/vnd.google-apps.document' Use case You need a proxy that supports authentication or UDP (rare for HTTP APIs but possible). Example with Node.js (Axios + SocksProxyAgent) const axios = require('axios'); const SocksProxyAgent = require('socks-proxy-agent'); const agent = new SocksProxyAgent('socks5://username:password@proxy-ip:1080'); const SocksProxyAgent = require('socks-proxy-agent')

コメント

  1. Proxy Google Docs List 通りすがり より:

    参考になる記事なのですがスペルミス・誤字が気になり勿体ないので失礼ながら簡潔に指摘させて頂きます。

    スペルミス: Resokume Soures Randam Resolime
    誤字: それほど悪い変では無いように思えます。

    • Proxy Google Docs List UZUREA編集部 より:

      ご指摘ありがとうございます。沢山誤字がありました……。
      該当箇所を修正いたしました。今後ともよろしくおねがいいたします。

関連する記事



page top