From 9297f31ed3c0ffd333b7aa679e025334280d192b Mon Sep 17 00:00:00 2001 From: Alexander Zierhut Date: Tue, 3 Jan 2023 09:26:03 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=BD=EF=B8=8F=20Upgrade=20headers=20to?= =?UTF-8?q?=20versioned=20API=20202208?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Client.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index 169b58d..fde8f54 100644 --- a/src/Client.php +++ b/src/Client.php @@ -81,7 +81,7 @@ class Client * Default API root URL * string */ - const API_ROOT = 'https://api.linkedin.com/v2/'; + const API_ROOT = 'https://api.linkedin.com/rest/'; /** * API Root URL @@ -131,6 +131,7 @@ public function setUseTokenParam($useTokenParam) protected $apiHeaders = [ 'Content-Type' => 'application/json', 'x-li-format' => 'json', + 'LinkedIn-Version' => '202208', ]; /**