I have tried connecting to both the apisandbox.dev.clover.com and sandbox.dev.clover.com...

I get 401 unauthorized on the Apisandbox all the time trying to use access token in the header, no matter what...

If I am logged into 'Sandbox.dev.clover.com" website then I can make API calls with my accesstoken ( in Header ), however if I am logged out ( session expires ) of the website, my AccessToken in the header stops working for sandbox.dev.clover.com

I also have the issue that sandbox.dev.clover.com only returns 100 records, I can't seem to override the 'limit=100' that gets appended after I send the request to clover's api.

Anyone have any idea what I'm doing wrong ?

using guzzlehttp on php:

$header = ['Authorization' => 'Bearer ' . $access_token, 'Content-Type' => 'application/json'];

    $client = new \GuzzleHttp\Client([
        'base_uri' => $api_url,
        'headers' => $header

 $request = new GuzzleHttp\Psr7\Request('get', $api_url, $header);
    $response = $client->send($request);
    $json = $response->getBody();
    return response($json)->header('Content-Type', 'application/json');

asked 2017-05-04 20:11:09 -0500

rawrkats gravatar image