Skip to content
EN

json转ppt

方法: POST路径: /docmee/v1/api/pptjson/json2ppt

请求参数

Header 参数

text
Content-Type
string
必需
示例:
application/json
Authorization
string
可选
默认值:
Bearer {{YOUR_API_KEY}}

Body 参数 application/json

text
width
integer
必需
height
integer
必需
pages
array
[string]
必需
font
array
[string]
必需
slideMasters
array
[string]
必需
version
string
必需
示例
{
"width"
:
0
,
"height"
:
0
,
"pages"
:
[
"string"
]
,
"font"
:
[
"string"
]
,
"slideMasters"
:
[
"string"
]
,
"version"
:
"string"
}

请求示例代码

Shell

bash
curl --location --request POST '/docmee/v1/api/pptjson/json2ppt' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "width": 0,
    "height": 0,
    "pages": [
        "string"
    ],
    "font": [
        "string"
    ],
    "slideMasters": [
        "string"
    ],
    "version": "string"
}'

返回响应

🟢 200 成功

内容类型: application/json

响应结构

text
object

示例

json
{}