Sts
class Sts
Reviewed 阿里临时授权 https://next.api.aliyun.com/api-tools/sdk/Sts?version=2015-04-01&language=php-tea#doc-step-intro
Traits
AppTrait
Properties
protected Resp | $error | error | from AppTrait |
protected Resp | $success | success | from AppTrait |
protected array | $tempKey |
Methods
array
setConfig(string $app_key, string $app_secret, string $bucket, string $endpoint, string $role_arn, string $url_prefix = '')
No description
setSubDirectory($directory = '')
No description
array
tempOss()
返回 Ali 授权key
Details
in
AppTrait at line 45
bool
setError(string|MessageBag $error)
设置错误
at line 72
array
getTempKey()
deprecated
deprecated
临时授权使用异常方式进行抛出报错, 不进行 Error 抓取
at line 86
Sts
setConfig(string $app_key, string $app_secret, string $bucket, string $endpoint, string $role_arn, string $url_prefix = '')
No description
at line 97
Sts
setSubDirectory($directory = '')
No description
at line 107
array
tempOss()
返回 Ali 授权key