src/Mailjet/Api/Client.php
public function post($apiQuery, $options = array())
    {
        if (!RequestApi::isPost($apiQuery)) {
            throw new \InvalidArgumentException('Unsupported API query for POST method: ' . $apiQuery);
        }

        $request = $this->getApi()->post($apiQuery, null, $options);

        $this->prepareRequest($request, $options);

        $response = $request->send();

        return $this->processResponse($response);
    }
public function post($apiQuery, $options = array())
    {
        if (!RequestApi::isPost($apiQuery)) {
            throw new \InvalidArgumentException('Unsupported API query for POST method: ' . $apiQuery);
        }

        $request = $this->getApi()->post($apiQuery, null, $options);

        $this->prepareRequest($request, $options);

        $response = $request->send();

        return $this->processResponse($response);
    }
public function post ( $ apiQuery , $ options = array ( ) ) { if ( ! RequestApi :: isPost ( $ apiQuery ) ) { throw new \ InvalidArgumentException ( 'Unsupported API query for POST method: ' . $ apiQuery ) ; } $ request = $ this -> getApi ( ) -> post ( $ apiQuery , null , $ options ) ; $ this -> prepareRequest ( $ request , $ options ) ; $ response = $ request -> send ( ) ; return $ this -> processResponse ( $ response ) ; }
Method for issuing low level API POST requests

@see Client::get()
Method for issuing low level API POST requests