查询积分余额
curl --request GET \
--url https://api.maxapi.ai/ent/v2/credits \
--header 'Authorization: <api-key>'import requests
url = "https://api.maxapi.ai/ent/v2/credits"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.maxapi.ai/ent/v2/credits', 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/ent/v2/credits"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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/ent/v2/credits")
.header("Authorization", "<api-key>")
.asString();{
"credits": 1000
}查询当前账户的积分余额
GET
https://api.maxapi.ai
/
ent
/
v2
/
credits
查询积分余额
curl --request GET \
--url https://api.maxapi.ai/ent/v2/credits \
--header 'Authorization: <api-key>'import requests
url = "https://api.maxapi.ai/ent/v2/credits"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.maxapi.ai/ent/v2/credits', 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/ent/v2/credits"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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/ent/v2/credits")
.header("Authorization", "<api-key>")
.asString();{
"credits": 1000
}