madeITBelgium / TeamLeader

PHP TeamLeader API Laravel SDK
13 stars 14 forks source link

send body data with a get request for filtering and paging #31

Closed crashgh closed 2 years ago

crashgh commented 2 years ago

For example, deals.list supports filtering and paging. However the data (2nd attribute) is not parsed to the call:

/Deals/Deal.php

/**
     * Get a list of deals.
     */
    public function list($data = [])
    {
        return $this->teamleader->getCall('deals.list', [
            'body' => json_encode($data),
        ]);
    }