{"cpanelresult":{"apiversion":"2","error":"Access denied","data":{"reason":"Access denied","result":"0"},"type":"text"}}
like this i will get json for every api call from all the calls i have to get the reason and store it in database
NOTE:In the code api call made with header()
to connect WHM.i cann't able to use that api as url and decode it
thank you in advance