Generate PPT(Generate PPT)
curl --request POST \
--url https://api.maxapi.ai/apps/ppt-structure \
--header 'AccessSecret: <accesssecret>' \
--header 'AccessToken: <accesstoken>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "网络安全大赛",
"theme": "网络安全主题",
"text": "生成一份网络安全PPT"
}
'import requests
url = "https://api.maxapi.ai/apps/ppt-structure"
payload = {
"title": "网络安全大赛",
"theme": "网络安全主题",
"text": "生成一份网络安全PPT"
}
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({title: '网络安全大赛', theme: '网络安全主题', text: '生成一份网络安全PPT'})
};
fetch('https://api.maxapi.ai/apps/ppt-structure', 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-structure"
payload := strings.NewReader("{\n \"title\": \"网络安全大赛\",\n \"theme\": \"网络安全主题\",\n \"text\": \"生成一份网络安全PPT\"\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-structure")
.header("AccessToken", "<accesstoken>")
.header("AccessSecret", "<accesssecret>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"网络安全大赛\",\n \"theme\": \"网络安全主题\",\n \"text\": \"生成一份网络安全PPT\"\n}")
.asString();{
"code": 200,
"msg": "success",
"data": {
"title": "网络安全大赛",
"catalogs": [
{
"catalog": "技术的特性",
"sub_catalog": [
"创新的技术形式",
"高效率和高可塑性",
"对现实世界的影响"
]
},
{
"catalog": "带来的革命",
"sub_catalog": [
"AIGC的应用场景和趋势",
"赋能生产、释放创造力的影响",
"对企业创新的推动作用"
]
},
{
"catalog": "挑战与机遇",
"sub_catalog": [
"AIGC发展中的问题与挑战",
"创新驱动发展的机遇",
"适应新时代的策略和措施"
]
},
{
"catalog": "人工智能的融合",
"sub_catalog": [
"人工智能的互补关系",
"人工智能在行业应用中的联合发展",
"和人工智能共同演进的趋势和影响"
]
},
{
"catalog": "前景展望",
"sub_catalog": [
"未来发展的可能性和方向",
"数字经济时代的角色和价值",
"对人类社会发展的影响和意义"
]
}
]
}
}Generate PPT(Generate PPT)
POST
https://api.maxapi.ai
/
apps
/
ppt-structure
Generate PPT(Generate PPT)
curl --request POST \
--url https://api.maxapi.ai/apps/ppt-structure \
--header 'AccessSecret: <accesssecret>' \
--header 'AccessToken: <accesstoken>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "网络安全大赛",
"theme": "网络安全主题",
"text": "生成一份网络安全PPT"
}
'import requests
url = "https://api.maxapi.ai/apps/ppt-structure"
payload = {
"title": "网络安全大赛",
"theme": "网络安全主题",
"text": "生成一份网络安全PPT"
}
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({title: '网络安全大赛', theme: '网络安全主题', text: '生成一份网络安全PPT'})
};
fetch('https://api.maxapi.ai/apps/ppt-structure', 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-structure"
payload := strings.NewReader("{\n \"title\": \"网络安全大赛\",\n \"theme\": \"网络安全主题\",\n \"text\": \"生成一份网络安全PPT\"\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-structure")
.header("AccessToken", "<accesstoken>")
.header("AccessSecret", "<accesssecret>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"网络安全大赛\",\n \"theme\": \"网络安全主题\",\n \"text\": \"生成一份网络安全PPT\"\n}")
.asString();{
"code": 200,
"msg": "success",
"data": {
"title": "网络安全大赛",
"catalogs": [
{
"catalog": "技术的特性",
"sub_catalog": [
"创新的技术形式",
"高效率和高可塑性",
"对现实世界的影响"
]
},
{
"catalog": "带来的革命",
"sub_catalog": [
"AIGC的应用场景和趋势",
"赋能生产、释放创造力的影响",
"对企业创新的推动作用"
]
},
{
"catalog": "挑战与机遇",
"sub_catalog": [
"AIGC发展中的问题与挑战",
"创新驱动发展的机遇",
"适应新时代的策略和措施"
]
},
{
"catalog": "人工智能的融合",
"sub_catalog": [
"人工智能的互补关系",
"人工智能在行业应用中的联合发展",
"和人工智能共同演进的趋势和影响"
]
},
{
"catalog": "前景展望",
"sub_catalog": [
"未来发展的可能性和方向",
"数字经济时代的角色和价值",
"对人类社会发展的影响和意义"
]
}
]
}
}