Now, when a private request goes wrong it tries to refresh the access token
Added headers optional parameter to api private and public request methods