更换 PPT 模板
curl --request POST \
--url https://api.maxapi.ai/api/ppt/updatePptTemplate \
--header 'Content-Type: text/plain' \
--data '
{
"pptId": "xxx",
"templateId": "xxx",
"sync": false
}
'import requests
url = "https://api.maxapi.ai/api/ppt/updatePptTemplate"
payload = {
"pptId": "xxx",
"templateId": "xxx",
"sync": False
}
headers = {"Content-Type": "text/plain"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'text/plain'},
body: JSON.stringify({pptId: 'xxx', templateId: 'xxx', sync: false})
};
fetch('https://api.maxapi.ai/api/ppt/updatePptTemplate', 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/updatePptTemplate"
payload := strings.NewReader("{\n \"pptId\": \"xxx\",\n \"templateId\": \"xxx\",\n \"sync\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "text/plain")
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/updatePptTemplate")
.header("Content-Type", "text/plain")
.body("{\n \"pptId\": \"xxx\",\n \"templateId\": \"xxx\",\n \"sync\": false\n}")
.asString();{
"code": 0,
"data": {
"pptId": "xxx",
"templateId": "xxx",
"pptxProperty": {}
}
}POST
https://api.maxapi.ai
/
api
/
ppt
/
updatePptTemplate
更换 PPT 模板
curl --request POST \
--url https://api.maxapi.ai/api/ppt/updatePptTemplate \
--header 'Content-Type: text/plain' \
--data '
{
"pptId": "xxx",
"templateId": "xxx",
"sync": false
}
'import requests
url = "https://api.maxapi.ai/api/ppt/updatePptTemplate"
payload = {
"pptId": "xxx",
"templateId": "xxx",
"sync": False
}
headers = {"Content-Type": "text/plain"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'text/plain'},
body: JSON.stringify({pptId: 'xxx', templateId: 'xxx', sync: false})
};
fetch('https://api.maxapi.ai/api/ppt/updatePptTemplate', 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/updatePptTemplate"
payload := strings.NewReader("{\n \"pptId\": \"xxx\",\n \"templateId\": \"xxx\",\n \"sync\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "text/plain")
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/updatePptTemplate")
.header("Content-Type", "text/plain")
.body("{\n \"pptId\": \"xxx\",\n \"templateId\": \"xxx\",\n \"sync\": false\n}")
.asString();{
"code": 0,
"data": {
"pptId": "xxx",
"templateId": "xxx",
"pptxProperty": {}
}
}