Referral
Get current user leaderboard position
GET
/
v1
/
referral
/
me
/
leaderboard
Get current user leaderboard position
curl --request GET \
--url https://api.wazapin.com/v1/referral/me/leaderboardconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/referral/me/leaderboard', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/referral/me/leaderboard"
response = requests.get(url)
print(response.text){
"my_confirmed_amount_idr": 123,
"my_rank": 123,
"my_referral_count": 123,
"neighbors": [
{
"confirmed_amount_idr": 123,
"display_name": "<string>",
"is_me": true,
"rank": 123,
"referral_count": 123
}
],
"top_entries": [
{
"confirmed_amount_idr": 123,
"display_name": "<string>",
"is_me": true,
"rank": 123,
"referral_count": 123
}
],
"total_participants": 123
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}⌘I
Get current user leaderboard position
curl --request GET \
--url https://api.wazapin.com/v1/referral/me/leaderboardconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/referral/me/leaderboard', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/referral/me/leaderboard"
response = requests.get(url)
print(response.text){
"my_confirmed_amount_idr": 123,
"my_rank": 123,
"my_referral_count": 123,
"neighbors": [
{
"confirmed_amount_idr": 123,
"display_name": "<string>",
"is_me": true,
"rank": 123,
"referral_count": 123
}
],
"top_entries": [
{
"confirmed_amount_idr": 123,
"display_name": "<string>",
"is_me": true,
"rank": 123,
"referral_count": 123
}
],
"total_participants": 123
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}