I am trying to use magento rest api for customers. But when i authenticate the application, it gives me following error.
Invalid auth/bad request (got a 500, expected HTTP/1.1 20X or a redirect)
Service temporary unavailable
I am trying to fetch product collection for customer role.
$oauthClient->fetch($resourceUrl, array(), 'GET', array('Content-Type' => 'application/xml'));
The line of code throws exception.
Any help will be appreciated.