I can successfully execute authentication, access_code request and refresh_token call in AR Live API. But I'm getting empty response for list of company files and for a particular company file. This is may be because my httpRequest object is missing some data. Can anyone please tell me what should be in the body of the request with an example code? Below is what I'm trying.
HttpRequest req = new HttpRequest();
String endPoint = 'https://api.myob.com/accountright/';
req.setBody(''); //what should be in the body? when this is empty getting warnings
req.setHeader('Authorization', 'Bearer '+accessToken);
Http http = new Http();
HTTPResponse res = http.send(req);