I need customer list from Quickbooks Account. Quickbooks API call is as below
$dataService = DataService::Configure(array(
'auth_mode' => 'oauth1',
'consumerKey' => '',
'consumerSecret' => '',
'accessTokenKey' => '',
'accessTokenSecret' => '',
'QBORealmID' => '',
'baseUrl' => 'https://quickbooks.api.intuit.com/'
));
$dataService->setLogLocation("./logs/");
$dataService->Query("SELECT * FROM Customer");
It gives error as below.
Fatal error: Uncaught QuickBooksOnline\API\Exception\SdkException: [0]: Http Status Code:[0] Http Response Body are null or Empty. thrown in Core/HttpClients/IntuitResponse.php on line 26
Please suggest me that what I have done wrong?