Kontoguthaben abrufen
Dieser API-Befehl liest das Kontoguthaben aus und gibt es zurück
Content-Type
application/json
category
user
action
balance
Antwortparameter
| Parametername | Typ | Beschreibung |
|---|---|---|
| username | String | Benutzername |
| amount | Nummer | Betrag |
| currency | String | Währungstyp |
Beispielanfrage
{
curl https://api.nicenic.net/v2/?category=user&action=balance
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
Rückgabeergebnis
0 OK Erfolgreiche Antwort
{
"code": 0,
"msg" : "success",
"data" : {
"username":"XXXX",
"amount":12542.34,
"currency":"USD"
}
}
400 Ungültige Anfrage
{
"code": 400,
"msg" : "Request parameter error",
}






