curl --request POST \
--url 'https://domain.hostwithdothost.com/?action=resellerdetails' \
--header 'Content-Type: application/json' \
--data '{
"username": "yourUsername",
"password": "yourPassword"
}'
{
"result": "OK",
"id": -1,
"active": true,
"name": "DotHost",
"balance": "5.0000",
"currency": "USD",
"symbol": "$",
"balances": [
{
"balance": "5.0000",
"currency": "USD",
"symbol": "$"
},
{
"balance": "0.0000",
"currency": "TL",
"symbol": "TL"
}
]
}
curl --request POST \
--url 'https://domain.hostwithdothost.com/?action=resellerdetails' \
--header 'Content-Type: application/json' \
--data '{
"username": "yourUsername",
"password": "yourPassword"
}'
{
"result": "OK",
"id": -1,
"active": true,
"name": "DotHost",
"balance": "5.0000",
"currency": "USD",
"symbol": "$",
"balances": [
{
"balance": "5.0000",
"currency": "USD",
"symbol": "$"
},
{
"balance": "0.0000",
"currency": "TL",
"symbol": "TL"
}
]
}
The response is of type object
.
Was this page helpful?