EasyPost\Batch::add_shipments PHP Method

add_shipments() public method

add shipments to a batch
public add_shipments ( mixed $params = null )
$params mixed
    public function add_shipments($params = null)
    {
        $requestor = new Requestor($this->_apiKey);
        $url = $this->instanceUrl() . '/add_shipments';
        list($response, $apiKey) = $requestor->request('post', $url, $params);
        $this->refreshFrom($response, $apiKey, true);
        return $this;
    }