Properties

$accessKey

$accessKey : 

Type

$secretKey

$secretKey : 

Type

$policyFields

$policyFields : 

上传策略,参数规格详见 http://developer.qiniu.com/docs/v6/api/reference/security/put-policy.html

Type

$deprecatedPolicyFields

$deprecatedPolicyFields : 

Type

Methods

__construct()

__construct(  $accessKey,   $secretKey) 

Parameters

$accessKey
$secretKey

getAccessKey()

getAccessKey() 

sign()

sign(  $data) 

Parameters

$data

signWithData()

signWithData(  $data) 

Parameters

$data

signRequest()

signRequest(  $urlString,   $body,   $contentType = null) 

Parameters

$urlString
$body
$contentType

verifyCallback()

verifyCallback(  $contentType,   $originAuthorization,   $url,   $body) 

Parameters

$contentType
$originAuthorization
$url
$body

privateDownloadUrl()

privateDownloadUrl(  $baseUrl,   $expires = 3600) 

Parameters

$baseUrl
$expires

uploadToken()

uploadToken(  $bucket,   $key = null,   $expires = 3600,   $policy = null,   $strictPolicy = true, \Qiniu\Zone  $zone = null) 

Parameters

$bucket
$key
$expires
$policy
$strictPolicy
\Qiniu\Zone $zone

authorization()

authorization(  $url,   $body = null,   $contentType = null) 

Parameters

$url
$body
$contentType

copyPolicy()

copyPolicy(  $policy,   $originPolicy,   $strictPolicy) 

Parameters

$policy
$originPolicy
$strictPolicy