随机 PPT 模板
curl --request POST \
--url https://api.maxapi.ai/api/ppt/randomTemplates \
--header 'Content-Type: <content-type>' \
--header 'token: <token>' \
--data '
{
"size": 30,
"filters": {
"type": 1,
"neq_id": []
}
}
'import requests
url = "https://api.maxapi.ai/api/ppt/randomTemplates"
payload = {
"size": 30,
"filters": {
"type": 1,
"neq_id": []
}
}
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({size: 30, filters: {type: 1, neq_id: []}})
};
fetch('https://api.maxapi.ai/api/ppt/randomTemplates', 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/randomTemplates"
payload := strings.NewReader("{\n \"size\": 30,\n \"filters\": {\n \"type\": 1,\n \"neq_id\": []\n }\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/randomTemplates")
.header("Content-Type", "<content-type>")
.header("token", "<token>")
.body("{\n \"size\": 30,\n \"filters\": {\n \"type\": 1,\n \"neq_id\": []\n }\n}")
.asString();{
"code": 0,
"total": 1,
"data": [
{
"id": "xxx",
"type": 1,
"coverUrl": "https://xxx.png",
"category": null,
"style": null,
"themeColor": null,
"subject": "",
"num": 20,
"createTime": "2024-01-01 10:00:00"
}
],
"message": "操作成功"
}POST
https://api.maxapi.ai
/
api
/
ppt
/
randomTemplates
随机 PPT 模板
curl --request POST \
--url https://api.maxapi.ai/api/ppt/randomTemplates \
--header 'Content-Type: <content-type>' \
--header 'token: <token>' \
--data '
{
"size": 30,
"filters": {
"type": 1,
"neq_id": []
}
}
'import requests
url = "https://api.maxapi.ai/api/ppt/randomTemplates"
payload = {
"size": 30,
"filters": {
"type": 1,
"neq_id": []
}
}
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({size: 30, filters: {type: 1, neq_id: []}})
};
fetch('https://api.maxapi.ai/api/ppt/randomTemplates', 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/randomTemplates"
payload := strings.NewReader("{\n \"size\": 30,\n \"filters\": {\n \"type\": 1,\n \"neq_id\": []\n }\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/randomTemplates")
.header("Content-Type", "<content-type>")
.header("token", "<token>")
.body("{\n \"size\": 30,\n \"filters\": {\n \"type\": 1,\n \"neq_id\": []\n }\n}")
.asString();{
"code": 0,
"total": 1,
"data": [
{
"id": "xxx",
"type": 1,
"coverUrl": "https://xxx.png",
"category": null,
"style": null,
"themeColor": null,
"subject": "",
"num": 20,
"createTime": "2024-01-01 10:00:00"
}
],
"message": "操作成功"
}请求体
text/plain