指定ID获取任务
curl --request GET \
--url https://api.maxapi.ai/mj/task/{id}/fetchimport requests
url = "https://api.maxapi.ai/mj/task/{id}/fetch"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.maxapi.ai/mj/task/{id}/fetch', 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}/fetch"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.maxapi.ai/mj/task/{id}/fetch")
.asString();{}{}{}指定ID获取任务
GET
https://api.maxapi.ai
/
mj
/
task
/
{id}
/
fetch
指定ID获取任务
curl --request GET \
--url https://api.maxapi.ai/mj/task/{id}/fetchimport requests
url = "https://api.maxapi.ai/mj/task/{id}/fetch"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.maxapi.ai/mj/task/{id}/fetch', 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}/fetch"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.maxapi.ai/mj/task/{id}/fetch")
.asString();{}{}{}路径参数
任务ID
响应
请求成功