json转ppt
curl --request POST \
--url https://api.maxapi.ai/api/pptjson/json2ppt \
--header 'Content-Type: <content-type>' \
--header 'token: <token>' \
--data '
{
"width": 960,
"height": 540,
"pages": [],
"font": [],
"slideMasters": [],
"version": "1.0"
}
'import requests
url = "https://api.maxapi.ai/api/pptjson/json2ppt"
payload = {
"width": 960,
"height": 540,
"pages": [],
"font": [],
"slideMasters": [],
"version": "1.0"
}
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({width: 960, height: 540, pages: [], font: [], slideMasters: [], version: '1.0'})
};
fetch('https://api.maxapi.ai/api/pptjson/json2ppt', 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/pptjson/json2ppt"
payload := strings.NewReader("{\n \"width\": 960,\n \"height\": 540,\n \"pages\": [],\n \"font\": [],\n \"slideMasters\": [],\n \"version\": \"1.0\"\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/pptjson/json2ppt")
.header("Content-Type", "<content-type>")
.header("token", "<token>")
.body("{\n \"width\": 960,\n \"height\": 540,\n \"pages\": [],\n \"font\": [],\n \"slideMasters\": [],\n \"version\": \"1.0\"\n}")
.asString();{
"code": 123,
"message": "<string>",
"data": {}
}POST
https://api.maxapi.ai
/
api
/
pptjson
/
json2ppt
json转ppt
curl --request POST \
--url https://api.maxapi.ai/api/pptjson/json2ppt \
--header 'Content-Type: <content-type>' \
--header 'token: <token>' \
--data '
{
"width": 960,
"height": 540,
"pages": [],
"font": [],
"slideMasters": [],
"version": "1.0"
}
'import requests
url = "https://api.maxapi.ai/api/pptjson/json2ppt"
payload = {
"width": 960,
"height": 540,
"pages": [],
"font": [],
"slideMasters": [],
"version": "1.0"
}
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({width: 960, height: 540, pages: [], font: [], slideMasters: [], version: '1.0'})
};
fetch('https://api.maxapi.ai/api/pptjson/json2ppt', 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/pptjson/json2ppt"
payload := strings.NewReader("{\n \"width\": 960,\n \"height\": 540,\n \"pages\": [],\n \"font\": [],\n \"slideMasters\": [],\n \"version\": \"1.0\"\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/pptjson/json2ppt")
.header("Content-Type", "<content-type>")
.header("token", "<token>")
.body("{\n \"width\": 960,\n \"height\": 540,\n \"pages\": [],\n \"font\": [],\n \"slideMasters\": [],\n \"version\": \"1.0\"\n}")
.asString();{
"code": 123,
"message": "<string>",
"data": {}
}