保存 PPT
curl --request POST \
--url https://api.maxapi.ai/api/ppt/savePptx \
--header 'Content-Type: <content-type>' \
--header 'token: <token>' \
--data '
{
"id": "xxx",
"drawPptx": true,
"drawCover": true,
"pptxProperty": {}
}
'import requests
url = "https://api.maxapi.ai/api/ppt/savePptx"
payload = {
"id": "xxx",
"drawPptx": True,
"drawCover": True,
"pptxProperty": {}
}
headers = {
"Content-Type": "<content-type>",
"token": "<token>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '<content-type>', token: '<token>'},
body: JSON.stringify({id: 'xxx', drawPptx: true, drawCover: true, pptxProperty: {}})
};
fetch('https://api.maxapi.ai/api/ppt/savePptx', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.maxapi.ai/api/ppt/savePptx"
payload := strings.NewReader("{\n \"id\": \"xxx\",\n \"drawPptx\": true,\n \"drawCover\": true,\n \"pptxProperty\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("token", "<token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.maxapi.ai/api/ppt/savePptx")
.header("Content-Type", "<content-type>")
.header("token", "<token>")
.body("{\n \"id\": \"xxx\",\n \"drawPptx\": true,\n \"drawCover\": true,\n \"pptxProperty\": {}\n}")
.asString();{
"code": 0,
"data": {
"pptInfo": {}
},
"message": "操作成功"
}POST
https://api.maxapi.ai
/
api
/
ppt
/
savePptx
保存 PPT
curl --request POST \
--url https://api.maxapi.ai/api/ppt/savePptx \
--header 'Content-Type: <content-type>' \
--header 'token: <token>' \
--data '
{
"id": "xxx",
"drawPptx": true,
"drawCover": true,
"pptxProperty": {}
}
'import requests
url = "https://api.maxapi.ai/api/ppt/savePptx"
payload = {
"id": "xxx",
"drawPptx": True,
"drawCover": True,
"pptxProperty": {}
}
headers = {
"Content-Type": "<content-type>",
"token": "<token>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '<content-type>', token: '<token>'},
body: JSON.stringify({id: 'xxx', drawPptx: true, drawCover: true, pptxProperty: {}})
};
fetch('https://api.maxapi.ai/api/ppt/savePptx', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.maxapi.ai/api/ppt/savePptx"
payload := strings.NewReader("{\n \"id\": \"xxx\",\n \"drawPptx\": true,\n \"drawCover\": true,\n \"pptxProperty\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("token", "<token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.maxapi.ai/api/ppt/savePptx")
.header("Content-Type", "<content-type>")
.header("token", "<token>")
.body("{\n \"id\": \"xxx\",\n \"drawPptx\": true,\n \"drawCover\": true,\n \"pptxProperty\": {}\n}")
.asString();{
"code": 0,
"data": {
"pptInfo": {}
},
"message": "操作成功"
}