API documentation
รับ ยอดคงเหลือในบัญชี
คำสั่ง API นี้อ่านและแสดงยอดคงเหลือในบัญชี
Content-Type
application-json
หมวดหมู่
user
การทำงาน
balance
พารามิเตอร์การตอบกลับ
| ชื่อพารามิเตอร์ | ประเภท | คำอธิบาย |
|---|---|---|
| username | สตริง | ชื่อผู้ใช้ |
| amount | หมายเลข | จำนวน |
| currency | สตริง | ประเภทสกุลเงิน |
ตัวอย่างคำขอ
{
curl https://api.nicenic.net/v2/?category=user&action=balance/reseller/apiv2.php
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
ผลลัพธ์ที่ส่งกลับ
0 OK
ตอบกลับสำเร็จ
{
"code": 0,
"msg" : "success",
"data" : {
"username":"XXXX",
"amount":12542.34,
"currency":"USD"
}
}
400 คำขอไม่ถูกต้อง
{
"code": 400,
"msg" : "Request parameter error",
}






