Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)

src/b/a/BaiduYunPanPython-HEAD/plugins/Baidu/BaiduPlugin.py   BaiduYunPanPython(Download)
from UniFileSync.lib.common.Plugin import Plugin, ClouldAPI
from UniFileSync.lib.common.LogManager import logging
from UniFileSync.lib.common.Net import (
        cloud_get,
        cloud_multi_post,
        param = {"client_id": self.cf.get("BaiduCloud", "api_key"), "response_type": "device_code", "scope": "basic netdisk"}
        logging.debug('[BaiduPlugin]: applyAccess: URL=> %s, API key=> %s', api_url, self.cf.get("BaiduCloud", "api_key"))
        ret_fp = cloud_get(api_url, param)
        data = json.load(ret_fp)
        webbrowser.open(data["verification_url"])
                 "client_id": self.cf.get("BaiduCloud", "api_key"),
                 "client_secret": self.cf.get("BaiduCloud", "secret_key")}
        ret_fp = cloud_get(api_url, param)
        data = json.load(ret_fp)
        logging.debug('[BaiduPlugin]: getToken: access_token=>%s, refresh_token=>%s', data["access_token"], data["refresh_token"])
 
        try:
            f = cloud_get(url, param)
            data = json.load(f)
            res = E_OK