\Aliyun\DySDKLiteSignatureHelper

签名助手 2017/11/19

Class SignatureHelper

Summary

Methods
Properties
Constants
request()
getErrCode()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
encode()
fetchContent()
No private properties found
N/A

Methods

request()

request(  $accessKeyId,   $accessKeySecret,   $domain,   $params,   $security = false) : boolean|\stdClass

生成签名并发起请求

Parameters

$accessKeyId

string AccessKeyId (https://ak-console.aliyun.com/)

$accessKeySecret

string AccessKeySecret

$domain

string API接口所在域名

$params

array API具体参数

$security

boolean 使用https

Returns

boolean|\stdClass —

返回API接口调用结果,当发生错误时返回false

getErrCode()

getErrCode(  $code) 

Parameters

$code

encode()

encode(  $str) 

Parameters

$str

fetchContent()

fetchContent(  $url) 

Parameters

$url