App\Http\Controllers\LinkedInController::setRequestOptions PHP Method

setRequestOptions() private method

Set options for making the Client request
private setRequestOptions ( ) : void
return void
    private function setRequestOptions()
    {
        $authBearer = 'Bearer ' . Auth::user()->getAccessToken();
        $this->client = new Client(['base_uri' => $this->baseUrl, 'headers' => ['Authorization' => $authBearer, 'Content-Type' => 'application/json', 'Accept' => 'application/json']]);
    }