The SDK private download for seven Qiniu 7.0

Source: Internet
Author: User
See the official website download is more than 7.0 version, the results of the SDK documentation is 6.0, when to release 7 of the SDK documentation? In particular, the download for private resources is almost without

Reply content:

See the official website download is more than 7.0 version, the results of the SDK documentation is 6.0, when to release 7 of the SDK documentation? In particular, the download for private resources is almost without

If you have anything to offer, read more about the documentation.

PHP V7SDK Documentation

use Qiniu\Auth;$accessKey = 'Access_Key';$secretKey = 'Secret_Key';// 构建鉴权对象$auth = new Auth($accessKey, $secretKey);// 要上传的空间$bucket = 'rainwsy';// 私有空间中的外链 http://
  
   
    
   /
   
    
     
    $baseUrl = 'http://7xox85.com1.z0.glb.clouddn.com/resume.doc';// 对链接进行签名$signedUrl = $auth->privateDownloadUrl($baseUrl);echo $signedUrl;
   
    
  
   
public function privateDownloadUrl($baseUrl, $expires = 3600)    {        $deadline = time() + $expires;        $pos = strpos($baseUrl, '?');        if ($pos !== false) {            $baseUrl .= '&e=';        } else {            $baseUrl .= '?e=';        }        $baseUrl .= $deadline;        $token = $this->sign($baseUrl);        return "$baseUrl&token=$token";    }
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.