Identify User
#GET /likee/user/{likee_id}
Resolve a public Likee ID to the account's trusted identity before recharging. Show the nickname (and avatar) to your customer so they confirm the right account, then pass likee_uid to the recharge call.
|
|
| Method |
GET |
| URL |
https://api.boostigo.io/likee/user/{likee_id} |
| Auth |
Authorization: Bearer YOUR_API_KEY |
| Rate limit |
counts against your key's per-minute limit |
#Path parameters
| Name |
Type |
Description |
likee_id |
string |
The public Likee ID your customer typed (3–40 chars: letters, digits, _ . -). |
#Request
curl --request GET \
"https://api.boostigo.io/likee/user/1137852558" \
--header "Authorization: Bearer YOUR_API_KEY" \
--header "Accept: application/json"
#Response 200
{
"success": true,
"data": {
"platform": "likee",
"user": {
"likee_id": "1137852558",
"likee_uid": "1278112264",
"nickname": "yehya",
"avatar": "https://img.like.video/…/avatar.jpg",
"country": "LB"
}
}
}
| Field |
Always present |
Description |
likee_id |
yes |
Echo of the requested ID |
likee_uid |
yes |
Internal Likee UID — required in POST /likee/recharge |
nickname |
yes |
Display name (may be empty for brand-new accounts) |
avatar |
optional |
Signed image URL, expires after a while — display it, do not store it |
country |
optional |
ISO country code when Likee provides it |
Optional fields may be null; do not depend on them for your integration.
#Errors
| HTTP |
code |
When |
| 422 |
INVALID_LIKEE_ID |
Malformed ID |
| 404 |
USER_NOT_FOUND |
Likee knows no such account (or it is deleted) |
| 503 |
SERVICE_UNAVAILABLE |
Likee lookup temporarily unreachable — retry with backoff |
{ "success": false, "error": { "code": "USER_NOT_FOUND", "message": "Likee user was not found." } }
#PHP
<?php
$ch = curl_init("https://api.boostigo.io/likee/user/1137852558");
curl_setopt_array($ch, [CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => ["Authorization: Bearer YOUR_API_KEY", "Accept: application/json"]]);
$res = json_decode(curl_exec($ch), true);
if ($res["success"]) { $uid = $res["data"]["user"]["likee_uid"]; $nick = $res["data"]["user"]["nickname"]; }
#Node.js
const res = await fetch("https://api.boostigo.io/likee/user/1137852558", {
headers: { Authorization: "Bearer YOUR_API_KEY", Accept: "application/json" },
});
const json = await res.json();
if (json.success) console.log(json.data.user.nickname, json.data.user.likee_uid);