EasyPost\Shipment::get_rates PHP Method

get_rates() public method

get rates for a shipment
public get_rates ( mixed $params = null )
$params mixed
    public function get_rates($params = null)
    {
        $requestor = new Requestor($this->_apiKey);
        $url = $this->instanceUrl() . '/rates';
        list($response, $apiKey) = $requestor->request('get', $url, $params);
        $this->refreshFrom($response, $apiKey, true);
        return $this;
    }