GithubHelp home page GithubHelp logo

Comments (5)

hellflame avatar hellflame commented on August 15, 2024

已经

from base64 import urlsafe_b64encode
import hmac

忘了写

from python-sdk.

longbai avatar longbai commented on August 15, 2024

汗,你这个是算hmac的 base64 编码,直接用auth里的函数就好

from python-sdk.

hellflame avatar hellflame commented on August 15, 2024

然而在官方文档里面不就是hmac的base64么2333333,真的是我理解错误么............=.=
然而对于pythonsdk里面给的auth里的函数.....私有空间貌似只能用默认域名......并不能用自己设置的域名(自定义域名返回的链接表示404).....这是因为只为默认域名解析的缘故么.......

from python-sdk.

forrest-mao avatar forrest-mao commented on August 15, 2024

@hellflame 可以用自定义域名的私有链接,使用 auth的 private_download_url,第二个参数的url中的path部分要保证是空间中已经存在的key

from python-sdk.

hellflame avatar hellflame commented on August 15, 2024

@forrest-mao 我已经这么做了......之前只是觉得还要用那么长的默认域名比较麻烦........

from python-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.