API - Check Wallet Balance


Parameters:
Parameter_Name Description
username Your SubAndGain username
apiKey Your SubAndGain API Key

API Command:


https://subandgain.com/api/balance.php?username=****&apiKey=****
//Replace **** with your username, api key...

E.g.
https://subandgain.com/api/balance.php?username=Peter&apiKey=sag8rqpfa8vkpn1ler56ygh8kxxw1aor8
//where username is Peter and apiKey is sag8rqpfa8vkpn1ler56ygh8kxxw1aor8

Response:


JSON Format:
{"status":"successful","balance":"2500"}

Else, if there is an error in your request, one of the responses below will be displayed in this format:
{"error":"ERR201","description":"Invalid Username or Api Key"}

Responses:
Error Description
ERR200 Username Field Is Empty
ERR201 Invalid Username or Api Key