查询API信息
curl --request GET \
--url https://api.maxapi.ai/api/user/apiInfo \
--header 'Api-Key: <api-key>'import requests
url = "https://api.maxapi.ai/api/user/apiInfo"
headers = {"Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Api-Key': '<api-key>'}};
fetch('https://api.maxapi.ai/api/user/apiInfo', 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/api/user/apiInfo"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Api-Key", "<api-key>")
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/api/user/apiInfo")
.header("Api-Key", "<api-key>")
.asString();{
"data": {
"availableCount": 100,
"usedCount": 0
},
"code": 0,
"message": "操作成功"
}GET
https://api.maxapi.ai
/
api
/
user
/
apiInfo
查询API信息
curl --request GET \
--url https://api.maxapi.ai/api/user/apiInfo \
--header 'Api-Key: <api-key>'import requests
url = "https://api.maxapi.ai/api/user/apiInfo"
headers = {"Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Api-Key': '<api-key>'}};
fetch('https://api.maxapi.ai/api/user/apiInfo', 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/api/user/apiInfo"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Api-Key", "<api-key>")
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/api/user/apiInfo")
.header("Api-Key", "<api-key>")
.asString();{
"data": {
"availableCount": 100,
"usedCount": 0
},
"code": 0,
"message": "操作成功"
}