Skip to content

Commit 6d79c25

Browse files
committed
Added strange "COMPLIANCE" scope.
1 parent 55a44ec commit 6d79c25

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ Setup custom API request headers
224224
$client->setApiHeaders([
225225
'Content-Type' => 'application/json',
226226
'x-li-format' => 'json',
227+
'X-Restli-Protocol-Version' => '2.0.0', // use protocol v2
227228
'x-li-src' => 'msdk' // set a src header to "msdk" to mimic a mobile SDK
228229
]);
229230
```

src/Scope.php

+4
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,8 @@ class Scope extends AbstractEnum
4242
* Enables ability to share content on LinkedIn
4343
*/
4444
const SHARING = 'w_share';
45+
/**
46+
* Manage and delete your data including your profile, posts, invitations, and messages
47+
*/
48+
const COMPLIANCE = 'w_compliance';
4549
}

0 commit comments

Comments
 (0)