Happyr\LinkedIn\Http\RequestManager::sendRequest PHP Method

sendRequest() public method

public sendRequest ( $method, $uri, array $headers = [], $body = null, $protocolVersion = '1.1' )
$headers array
    public function sendRequest($method, $uri, array $headers = [], $body = null, $protocolVersion = '1.1')
    {
        $request = $this->getMessageFactory()->createRequest($method, $uri, $headers, $body, $protocolVersion);
        try {
            return $this->getHttpClient()->sendRequest($request);
        } catch (TransferException $e) {
            throw new LinkedInTransferException('Error while requesting data from LinkedIn.com: ' . $e->getMessage(), $e->getCode(), $e);
        }
    }