Skip to content

Commit 9cb8fe5

Browse files
committed
Add company share to example
1 parent 0db5037 commit 9cb8fe5

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

examples/index.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,26 @@
7878
]
7979
);
8080
pp($share);
81+
82+
$companyId = '2414183';
83+
84+
$companyShare = $client->post(
85+
'companies/' . $companyId . '/shares',
86+
[
87+
'comment' => 'Checkout this amazing PHP SDK for LinkedIn!',
88+
'content' => [
89+
'title' => 'PHP Client for LinkedIn API',
90+
'description' => 'OAuth 2 flow, composer Package',
91+
'submitted-url' => 'https://github.com/zoonman/linkedin-api-php-client',
92+
'submitted-image-url' => 'https://github.com/fluidicon.png',
93+
],
94+
'visibility' => [
95+
'code' => 'anyone'
96+
]
97+
]
98+
);
99+
pp($companyShare);
100+
81101
} catch (\LinkedIn\Exception $exception) {
82102
// in case of failure, provide with details
83103
pp($exception);

0 commit comments

Comments
 (0)