通过文件生成PPT(文件内容解析)
curl --request POST \
--url https://api.maxapi.ai/apps/ppt-create-thesis \
--header 'AccessSecret: <accesssecret>' \
--header 'AccessToken: <accesstoken>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.maxapi.ai/apps/ppt-create-thesis"
payload = {}
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({})
};
fetch('https://api.maxapi.ai/apps/ppt-create-thesis', 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-create-thesis"
payload := strings.NewReader("{}")
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-create-thesis")
.header("AccessToken", "<accesstoken>")
.header("AccessSecret", "<accesssecret>")
.header("Content-Type", "application/json")
.body("{}")
.asString();{
"code": 200,
"msg": "success",
"data": {
"id": "2DBH5GNc8EkZTuwUPqkM9Hg7n2SjDJQf"
}
}POST
https://api.maxapi.ai
/
apps
/
ppt-create-thesis
通过文件生成PPT(文件内容解析)
curl --request POST \
--url https://api.maxapi.ai/apps/ppt-create-thesis \
--header 'AccessSecret: <accesssecret>' \
--header 'AccessToken: <accesstoken>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.maxapi.ai/apps/ppt-create-thesis"
payload = {}
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({})
};
fetch('https://api.maxapi.ai/apps/ppt-create-thesis', 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-create-thesis"
payload := strings.NewReader("{}")
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-create-thesis")
.header("AccessToken", "<accesstoken>")
.header("AccessSecret", "<accesssecret>")
.header("Content-Type", "application/json")
.body("{}")
.asString();{
"code": 200,
"msg": "success",
"data": {
"id": "2DBH5GNc8EkZTuwUPqkM9Hg7n2SjDJQf"
}
}请求体
application/json