取消任务
curl --request POST \
--url https://api.maxapi.ai/mj/task/{id}/cancelimport requests
url = "https://api.maxapi.ai/mj/task/{id}/cancel"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.maxapi.ai/mj/task/{id}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.maxapi.ai/mj/task/{id}/cancel"
req, _ := http.NewRequest("POST", url, nil)
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/mj/task/{id}/cancel")
.asString();{}{}{}{}POST
https://api.maxapi.ai
/
mj
/
task
/
{id}
/
cancel
取消任务
curl --request POST \
--url https://api.maxapi.ai/mj/task/{id}/cancelimport requests
url = "https://api.maxapi.ai/mj/task/{id}/cancel"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.maxapi.ai/mj/task/{id}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.maxapi.ai/mj/task/{id}/cancel"
req, _ := http.NewRequest("POST", url, nil)
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/mj/task/{id}/cancel")
.asString();{}{}{}{}路径参数
任务ID
响应
请求成功