public function getAllCharges($myshopify, $token, $sinceId = null)
    {
        $this->setRequestPath($myshopify);

        if($sinceId != null && $this->chargeType == 'application_charge')
        {
            $url = $this->getChargeEndpoint(). '.json?since_id=' . $sinceId;
        }
        else $url = $this->getChargeEndpoint(). '.json';


        $response = $this->getHttpClient()->get($url,
        [
            'headers' => $this->getResponseHeaders($token)
        ]);

        return json_decode($response->getBody(), true);

    }
public function getAllCharges($myshopify, $token, $sinceId = null)
    {
        $this->setRequestPath($myshopify);

        if($sinceId != null && $this->chargeType == 'application_charge')
        {
            $url = $this->getChargeEndpoint(). '.json?since_id=' . $sinceId;
        }
        else $url = $this->getChargeEndpoint(). '.json';


        $response = $this->getHttpClient()->get($url,
        [
            'headers' => $this->getResponseHeaders($token)
        ]);

        return json_decode($response->getBody(), true);

    }
public function getAllCharges ( $ myshopify , $ token , $ sinceId = null ) { $ this -> setRequestPath ( $ myshopify ) ; if ( $ sinceId != null && $ this -> chargeType == 'application_charge' ) { $ url = $ this -> getChargeEndpoint ( ) . '.json?since_id=' . $ sinceId ; } else $ url = $ this -> getChargeEndpoint ( ) . '.json' ; $ response = $ this -> getHttpClient ( ) -> get ( $ url , [ 'headers' => $ this -> getResponseHeaders ( $ token ) ] ) ; return json_decode ( $ response -> getBody ( ) , true ) ; }
Get all the charges from a specific shop

@param string $myshopify myshopify domain, eg. 'example.myshopify.com'
@param string $token, access_token
@return mixed
Get all the charges from a specific shop