Skip to content

Commit f212b6d

Browse files
committed
Include poster's name to company page comment
1 parent cec763e commit f212b6d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

examples/index.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,12 @@
8686
$companyShare = $client->post(
8787
'companies/' . $companyId . '/shares',
8888
[
89-
'comment' => 'Checkout this amazing PHP SDK for LinkedIn!',
89+
'comment' =>
90+
sprintf(
91+
'%s %s just tried this amazing PHP SDK for LinkedIn!',
92+
$profile['firstName'],
93+
$profile['lastName']
94+
),
9095
'content' => [
9196
'title' => 'PHP Client for LinkedIn API',
9297
'description' => 'OAuth 2 flow, composer Package',

0 commit comments

Comments
 (0)