I want to get results from this API as specified. But from what I know, I have tried to write some codes but it seems it doesn't work. I there any one can help me?
here is the API
http://1XX.XXX.XX.66:4848/SmartMeter/vms/credit?meterNumber=51751100044&amount=10&method=0&referenceNumber=12345678&return=JSON
Request Parameters -
meterNumber: Meter Number(Like 51931000049)
amount: Amount(like 10 kWh,10 M³) or Currency( 10 $)
method: 0 means Amount, 1 means Currency
referenceNumber: a unique number to synchronize the request and
response(Like 12345678)
return: JSON, XML, TEXT (Return format)
{
'code':'000',
'description':'The command executed successfully',
'meterNumber':'51931000049',
'token':'19654220842452620628',
'address':'china, jianshu, shuzhou',
'referenceNumber':'12345678'
}