获取 PPT 列表
curl --request POST \
--url https://api.maxapi.ai/api/ppt/listPptx \
--header 'Content-Type: <content-type>' \
--header 'token: <token>' \
--data '{
"page": 1,
"size": 10,
"filters": {
// 可根据字段过滤
}
}
响应'import requests
url = "https://api.maxapi.ai/api/ppt/listPptx"
payload = "{\n \"page\": 1,\n \"size\": 10,\n \"filters\": {\n // 可根据字段过滤\n }\n}\n响应"
headers = {
"Content-Type": "<content-type>",
"token": "<token>"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '<content-type>', token: '<token>'},
body: '{\n "page": 1,\n "size": 10,\n "filters": {\n // 可根据字段过滤\n }\n}\n响应'
};
fetch('https://api.maxapi.ai/api/ppt/listPptx', 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/listPptx"
payload := strings.NewReader("{\n \"page\": 1,\n \"size\": 10,\n \"filters\": {\n // 可根据字段过滤\n }\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/listPptx")
.header("Content-Type", "<content-type>")
.header("token", "<token>")
.body("{\n \"page\": 1,\n \"size\": 10,\n \"filters\": {\n // 可根据字段过滤\n }\n}\n响应")
.asString();{
"code": 0,
"total": 1,
"data": [
{
"id": "xxx",
"subject": "xxx",
"coverUrl": "https://xxx.png",
"templateId": "xxx",
"userId": "xxx",
"userName": "xxx",
"companyId": 1000,
"updateTime": null,
"createTime": "2024-01-01 10:00:00"
}
],
"message": "操作成功"
}POST
https://api.maxapi.ai
/
api
/
ppt
/
listPptx
获取 PPT 列表
curl --request POST \
--url https://api.maxapi.ai/api/ppt/listPptx \
--header 'Content-Type: <content-type>' \
--header 'token: <token>' \
--data '{
"page": 1,
"size": 10,
"filters": {
// 可根据字段过滤
}
}
响应'import requests
url = "https://api.maxapi.ai/api/ppt/listPptx"
payload = "{\n \"page\": 1,\n \"size\": 10,\n \"filters\": {\n // 可根据字段过滤\n }\n}\n响应"
headers = {
"Content-Type": "<content-type>",
"token": "<token>"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '<content-type>', token: '<token>'},
body: '{\n "page": 1,\n "size": 10,\n "filters": {\n // 可根据字段过滤\n }\n}\n响应'
};
fetch('https://api.maxapi.ai/api/ppt/listPptx', 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/listPptx"
payload := strings.NewReader("{\n \"page\": 1,\n \"size\": 10,\n \"filters\": {\n // 可根据字段过滤\n }\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/listPptx")
.header("Content-Type", "<content-type>")
.header("token", "<token>")
.body("{\n \"page\": 1,\n \"size\": 10,\n \"filters\": {\n // 可根据字段过滤\n }\n}\n响应")
.asString();{
"code": 0,
"total": 1,
"data": [
{
"id": "xxx",
"subject": "xxx",
"coverUrl": "https://xxx.png",
"templateId": "xxx",
"userId": "xxx",
"userName": "xxx",
"companyId": 1000,
"updateTime": null,
"createTime": "2024-01-01 10:00:00"
}
],
"message": "操作成功"
}请求体
text/plain
The body is of type string.