Informasi Akun Anda
curl --request GET \
--url https://waberes.fredoronan.web.id/api/v1/account/info \
--header 'X-API-Key: <x-api-key>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>'import requests
url = "https://waberes.fredoronan.web.id/api/v1/account/info"
headers = {
"X-API-Key": "<x-api-key>",
"X-Timestamp": "<x-timestamp>",
"X-Signature": "<x-signature>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'X-API-Key': '<x-api-key>',
'X-Timestamp': '<x-timestamp>',
'X-Signature': '<x-signature>'
}
};
fetch('https://waberes.fredoronan.web.id/api/v1/account/info', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://waberes.fredoronan.web.id/api/v1/account/info",
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: <x-api-key>",
"X-Signature: <x-signature>",
"X-Timestamp: <x-timestamp>"
],
]);
$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 := "https://waberes.fredoronan.web.id/api/v1/account/info"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<x-api-key>")
req.Header.Add("X-Timestamp", "<x-timestamp>")
req.Header.Add("X-Signature", "<x-signature>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://waberes.fredoronan.web.id/api/v1/account/info")
.header("X-API-Key", "<x-api-key>")
.header("X-Timestamp", "<x-timestamp>")
.header("X-Signature", "<x-signature>")
.asString();require 'uri'
require 'net/http'
url = URI("https://waberes.fredoronan.web.id/api/v1/account/info")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<x-api-key>'
request["X-Timestamp"] = '<x-timestamp>'
request["X-Signature"] = '<x-signature>'
response = http.request(request)
puts response.read_body{
"data": {
"days_left": 30,
"expiry_date": "",
"initial_quota": "1",
"plan": "<string>",
"plan_type": "TIME_BASED",
"remaining_quota": "1",
"session_id": "<random_uuid>",
"start_date": "",
"user_id": "user_abcdefghij12345678z"
},
"message": "berhasil melakukan sesuatu",
"success": true
}{
"code": "error code (sebatas kode error saja)",
"error": "verbosed error message (keterangan error yang lebih detail)",
"success": false
}Accounts
Informasi Akun Anda
Anda bisa menggunakan route API ini untuk mengecek status akun anda secara programmatically atau terprogram untuk tujuan otomasi renewal misalnya
GET
/
api
/
v1
/
account
/
info
Informasi Akun Anda
curl --request GET \
--url https://waberes.fredoronan.web.id/api/v1/account/info \
--header 'X-API-Key: <x-api-key>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>'import requests
url = "https://waberes.fredoronan.web.id/api/v1/account/info"
headers = {
"X-API-Key": "<x-api-key>",
"X-Timestamp": "<x-timestamp>",
"X-Signature": "<x-signature>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'X-API-Key': '<x-api-key>',
'X-Timestamp': '<x-timestamp>',
'X-Signature': '<x-signature>'
}
};
fetch('https://waberes.fredoronan.web.id/api/v1/account/info', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://waberes.fredoronan.web.id/api/v1/account/info",
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: <x-api-key>",
"X-Signature: <x-signature>",
"X-Timestamp: <x-timestamp>"
],
]);
$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 := "https://waberes.fredoronan.web.id/api/v1/account/info"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<x-api-key>")
req.Header.Add("X-Timestamp", "<x-timestamp>")
req.Header.Add("X-Signature", "<x-signature>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://waberes.fredoronan.web.id/api/v1/account/info")
.header("X-API-Key", "<x-api-key>")
.header("X-Timestamp", "<x-timestamp>")
.header("X-Signature", "<x-signature>")
.asString();require 'uri'
require 'net/http'
url = URI("https://waberes.fredoronan.web.id/api/v1/account/info")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<x-api-key>'
request["X-Timestamp"] = '<x-timestamp>'
request["X-Signature"] = '<x-signature>'
response = http.request(request)
puts response.read_body{
"data": {
"days_left": 30,
"expiry_date": "",
"initial_quota": "1",
"plan": "<string>",
"plan_type": "TIME_BASED",
"remaining_quota": "1",
"session_id": "<random_uuid>",
"start_date": "",
"user_id": "user_abcdefghij12345678z"
},
"message": "berhasil melakukan sesuatu",
"success": true
}{
"code": "error code (sebatas kode error saja)",
"error": "verbosed error message (keterangan error yang lebih detail)",
"success": false
}Header
API Key anda
Timestamp generate otomatis secara terprogram/programmatically, jangan manual
Signature(METHOD + Path + timestamp + hashed(body))
⌘I