Get My Usage Information(내 사용량 정보 조회)
curl --request GET \
--url http://localhost:4010/api/users/me/usage \
--header 'X-Api-Key: <api-key>'import requests
url = "http://localhost:4010/api/users/me/usage"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('http://localhost:4010/api/users/me/usage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "4010",
CURLOPT_URL => "http://localhost:4010/api/users/me/usage",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:4010/api/users/me/usage"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-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("http://localhost:4010/api/users/me/usage")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:4010/api/users/me/usage")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"currentCredit": 123,
"additionalCredit": 123,
"maxCredit": 123,
"period": "<string>",
"ttpCount": 123,
"maxTtpCount": 123,
"editCount": 123,
"maxEditCount": 123,
"postpaidUsageCount": 123
}users
Get My Usage Information(내 사용량 정보 조회)
GET
/
api
/
users
/
me
/
usage
Get My Usage Information(내 사용량 정보 조회)
curl --request GET \
--url http://localhost:4010/api/users/me/usage \
--header 'X-Api-Key: <api-key>'import requests
url = "http://localhost:4010/api/users/me/usage"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('http://localhost:4010/api/users/me/usage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "4010",
CURLOPT_URL => "http://localhost:4010/api/users/me/usage",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:4010/api/users/me/usage"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-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("http://localhost:4010/api/users/me/usage")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:4010/api/users/me/usage")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"currentCredit": 123,
"additionalCredit": 123,
"maxCredit": 123,
"period": "<string>",
"ttpCount": 123,
"maxTtpCount": 123,
"editCount": 123,
"maxEditCount": 123,
"postpaidUsageCount": 123
}Authorizations
Response
Usage Related Information(사용량 관련 정보)
Current Credit(현재 크레딧)
Additional Purchase Credit(추가 구매 크레딧)
Maximum Credit(최대 크레딧)
Plan Period(플랜 기간)
TTP Usage(TTP 사용량)
Maximum TTP Usage(TTP 최대 사용량)
Edit Usage(Edit 사용량)
Maximum Edit Usage(Edit 최대 사용량)
Postpaid Usage Count(후청구 사용 개수) - 엔터프라이즈 후청구 계정만