curl --request POST \ --url https://eazype.com/api/v1/service/recharge/dth/info \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data '{ "mobile": "3035735884", "operatorCode": "24" }'
{ "code": "0x0200", "status": "SUCCESS", "message": "Operator Fetch Successfully", "data": { "number": "3035735884", "name": "MR Shobha Rai", "balance": "197.78", "currentPlan": "", "nextRechargeDate": "", "plan": null } }
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
OK
The response is of type object.
object