生成PPT备注(演讲稿备注)
curl --request POST \
--url https://api.maxapi.ai/apps/ppt-note \
--header 'AccessSecret: <accesssecret>' \
--header 'AccessToken: <accesstoken>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "生成接口返回的id",
"cover_note": "封面页的备注",
"mind_map_note": "脑图页的备注",
"catalog_note": "目录页的备注",
"end_note": "结束页的备注",
"notes": [
{
"note": "一级大纲1备注",
"sub_note": [
"二级大纲备注"
]
},
{
"note": "一级大纲2备注",
"sub_note": [
"二级大纲备注"
]
}
]
}
'import requests
url = "https://api.maxapi.ai/apps/ppt-note"
payload = {
"id": "生成接口返回的id",
"cover_note": "封面页的备注",
"mind_map_note": "脑图页的备注",
"catalog_note": "目录页的备注",
"end_note": "结束页的备注",
"notes": [
{
"note": "一级大纲1备注",
"sub_note": ["二级大纲备注"]
},
{
"note": "一级大纲2备注",
"sub_note": ["二级大纲备注"]
}
]
}
headers = {
"AccessToken": "<accesstoken>",
"AccessSecret": "<accesssecret>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
AccessToken: '<accesstoken>',
AccessSecret: '<accesssecret>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
id: '生成接口返回的id',
cover_note: '封面页的备注',
mind_map_note: '脑图页的备注',
catalog_note: '目录页的备注',
end_note: '结束页的备注',
notes: [
{note: '一级大纲1备注', sub_note: ['二级大纲备注']},
{note: '一级大纲2备注', sub_note: ['二级大纲备注']}
]
})
};
fetch('https://api.maxapi.ai/apps/ppt-note', 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/apps/ppt-note"
payload := strings.NewReader("{\n \"id\": \"生成接口返回的id\",\n \"cover_note\": \"封面页的备注\",\n \"mind_map_note\": \"脑图页的备注\",\n \"catalog_note\": \"目录页的备注\",\n \"end_note\": \"结束页的备注\",\n \"notes\": [\n {\n \"note\": \"一级大纲1备注\",\n \"sub_note\": [\n \"二级大纲备注\"\n ]\n },\n {\n \"note\": \"一级大纲2备注\",\n \"sub_note\": [\n \"二级大纲备注\"\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("AccessToken", "<accesstoken>")
req.Header.Add("AccessSecret", "<accesssecret>")
req.Header.Add("Content-Type", "application/json")
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/apps/ppt-note")
.header("AccessToken", "<accesstoken>")
.header("AccessSecret", "<accesssecret>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"生成接口返回的id\",\n \"cover_note\": \"封面页的备注\",\n \"mind_map_note\": \"脑图页的备注\",\n \"catalog_note\": \"目录页的备注\",\n \"end_note\": \"结束页的备注\",\n \"notes\": [\n {\n \"note\": \"一级大纲1备注\",\n \"sub_note\": [\n \"二级大纲备注\"\n ]\n },\n {\n \"note\": \"一级大纲2备注\",\n \"sub_note\": [\n \"二级大纲备注\"\n ]\n }\n ]\n}")
.asString();{
"code": 200,
"msg": "success",
"data": {
"id": "a3vSWq37DWjcBEc3XuYGNadNZrZWYBjE"
}
}POST
https://api.maxapi.ai
/
apps
/
ppt-note
生成PPT备注(演讲稿备注)
curl --request POST \
--url https://api.maxapi.ai/apps/ppt-note \
--header 'AccessSecret: <accesssecret>' \
--header 'AccessToken: <accesstoken>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "生成接口返回的id",
"cover_note": "封面页的备注",
"mind_map_note": "脑图页的备注",
"catalog_note": "目录页的备注",
"end_note": "结束页的备注",
"notes": [
{
"note": "一级大纲1备注",
"sub_note": [
"二级大纲备注"
]
},
{
"note": "一级大纲2备注",
"sub_note": [
"二级大纲备注"
]
}
]
}
'import requests
url = "https://api.maxapi.ai/apps/ppt-note"
payload = {
"id": "生成接口返回的id",
"cover_note": "封面页的备注",
"mind_map_note": "脑图页的备注",
"catalog_note": "目录页的备注",
"end_note": "结束页的备注",
"notes": [
{
"note": "一级大纲1备注",
"sub_note": ["二级大纲备注"]
},
{
"note": "一级大纲2备注",
"sub_note": ["二级大纲备注"]
}
]
}
headers = {
"AccessToken": "<accesstoken>",
"AccessSecret": "<accesssecret>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
AccessToken: '<accesstoken>',
AccessSecret: '<accesssecret>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
id: '生成接口返回的id',
cover_note: '封面页的备注',
mind_map_note: '脑图页的备注',
catalog_note: '目录页的备注',
end_note: '结束页的备注',
notes: [
{note: '一级大纲1备注', sub_note: ['二级大纲备注']},
{note: '一级大纲2备注', sub_note: ['二级大纲备注']}
]
})
};
fetch('https://api.maxapi.ai/apps/ppt-note', 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/apps/ppt-note"
payload := strings.NewReader("{\n \"id\": \"生成接口返回的id\",\n \"cover_note\": \"封面页的备注\",\n \"mind_map_note\": \"脑图页的备注\",\n \"catalog_note\": \"目录页的备注\",\n \"end_note\": \"结束页的备注\",\n \"notes\": [\n {\n \"note\": \"一级大纲1备注\",\n \"sub_note\": [\n \"二级大纲备注\"\n ]\n },\n {\n \"note\": \"一级大纲2备注\",\n \"sub_note\": [\n \"二级大纲备注\"\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("AccessToken", "<accesstoken>")
req.Header.Add("AccessSecret", "<accesssecret>")
req.Header.Add("Content-Type", "application/json")
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/apps/ppt-note")
.header("AccessToken", "<accesstoken>")
.header("AccessSecret", "<accesssecret>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"生成接口返回的id\",\n \"cover_note\": \"封面页的备注\",\n \"mind_map_note\": \"脑图页的备注\",\n \"catalog_note\": \"目录页的备注\",\n \"end_note\": \"结束页的备注\",\n \"notes\": [\n {\n \"note\": \"一级大纲1备注\",\n \"sub_note\": [\n \"二级大纲备注\"\n ]\n },\n {\n \"note\": \"一级大纲2备注\",\n \"sub_note\": [\n \"二级大纲备注\"\n ]\n }\n ]\n}")
.asString();{
"code": 200,
"msg": "success",
"data": {
"id": "a3vSWq37DWjcBEc3XuYGNadNZrZWYBjE"
}
}请求体
application/json
PPT生成ID
封面页的备注
脑图页的备注
目录页的备注
结束页的备注