History
Introduction
API Category
Making API Requests
Region APIs
Instance APIs
Cloud Hosting Cluster APIs
Image APIs
Instance Launch Template APIs
Placement Group APIs
Key APIs
Security Group APIs
Network APIs
Data Types
Error Codes
GET /?ci-process=qrcode-generate&qrcode-content=<qrcode-content>&mode=<mode>&width=<width> HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: <GMT Date>Authorization: <Auth String>
参数名称 | 描述 | 类型 | 是否必选 |
ci-process | 数据万象处理能力,二维码生成参数为 qrcode-generate | String | 是 |
mode | 生成的二维码类型,可选值:0或1。0为二维码,1为条形码,默认值为0 | Int | 否 |
qrcode-content | 可识别的二维码文本信息。当 mode = 1时,此参数必须为12位数字 | String | 是 |
width | 指定生成的二维码或条形码的宽度,高度会进行等比压缩 | String | 是 |
<Response><ResultImage>base64编码的图片</ResultImage></Response>
节点名称(关键字) | 父节点 | 描述 | 类型 |
Response | 无 | 保存结果的容器 | Container |
节点名称(关键字) | 父节点 | 描述 | 类型 |
ResultImage | Response | 二维码图片 base64数据 | String |
GET /?ci-process=qrcode-generate&qrcode-content=<https://www.example.com>&mode=0&width=200 HTTP/1.1Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.comDate: Fri, 10 Apr 2020 09:35:16 GMTAuthorization: q-sign-algorithm=sha1&q-ak=************************************&q-sign-time=1497530202;1497610202&q-key-time=1497530202;1497610202&q-header-list=&q-url-param-list=&q-signature=****************************************
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 414641Date: Fri, 10 Apr 2020 09:35:16 GMTServer: tencent-cix-cos-request-id: NTk0MjdmODlfMjQ4OGY3XzYzYzhf****<Response><ResultImage>base64编码的图片</ResultImage></Response>
文档反馈