蔚然 1.0
  1. AliyunOss
蔚然 1.0
  • AliyunOss
    • Sts授权
      POST
  • Area
    • 地区代码
      GET
    • 国别
      GET
  • Category
    • 排序
      POST
  • Content
    • 内容列表
      GET
    • 内容详细
      GET
  • System
    • 检测 Token
      GET
    • 登录
      POST
    • 重设密码
      POST
    • 换绑手机
      POST
    • 续期
      POST
    • 退出登录
      POST
    • 检查通行证是否存在
      POST
    • 发送验证码
      GET
    • 获取验证串
      POST
    • 多语言包
      POST
    • 系统信息
      POST
    • 图片上传
      POST
    • 上传文件
      POST
  • Version
    • 版本检测
      GET
  • Demo
    • Get 示例
      GET
  1. AliyunOss

Sts授权

POST
/api/web/aliyun-oss/v1/sts/temp_oss
AliyunOss
命名规则采用 His{rand(8)} 格式

请求参数

Query 参数
_weiran_secret
string 
可选
默认值:
{{weiran-secret}}
Header 参数
x-os
string 
可选
默认值:
{{x-os}}
x-id
string 
可选
默认值:
{{x-id}}
Authorization
string 
可选
默认值:
Beare {{_token}}
x-type
string 
可选
默认值:
user

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST '/api/web/aliyun-oss/v1/sts/temp_oss?_weiran_secret={{weiran-secret}}' \
--header 'x-os: {{x-os}}' \
--header 'x-id: {{x-id}}' \
--header 'Authorization: Beare {{_token}}' \
--header 'x-type: user'

返回响应

🟢200成功
application/json
获取成功
Body
授权成功
code
integer 
状态码
可选
示例值:
1
message
string 
提示信息
可选
data
object 
授权成功
可选
directory
string 
允许上传的目录
可选
prefix_url
string 
组合上传的URL
可选
bucket
string 
存储名称
可选
access_key_secret
string 
key
可选
access_key_id
string 
id
可选
expiration
string 
过期时间
可选
security_token
string 
安全token
可选
示例
{
  "code": 1,
  "message": "string",
  "data": {
    "directory": "string",
    "prefix_url": "string",
    "bucket": "string",
    "access_key_secret": "string",
    "access_key_id": "string",
    "expiration": "string",
    "security_token": "string"
  }
}
修改于 2025-04-04 11:13:23
下一页
地区代码
Built with