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",
}






