ashwinks / PHP-LinkedIn-SDK

A PHP wrapper for the LinkedIn API
94 stars 75 forks source link

My first Posting #26

Open HarrySiereveld opened 8 years ago

HarrySiereveld commented 8 years ago

Nice class,

at this far the authorisation went well. So now I can get long-lived access_token for my webapp users and store these.

So next I'm trying to get my first post (acting as one of my users) 'cause there is little documentation, I try this, but getting: Mutiple authentication schemes detected

Any help out there? TIA!!

cheers Harry

$li = new LinkedIn( array( 'apikey' => '****', 'apisecret' => '******', 'callback_url' => 'http://mydomain.nl/socnet.php' ) ); $li->setAccessToken($storedusertoken);

$post = array( 'comment' => 'Test social Share', 'content' => array( 'title' => 'Test Title', 'description' => 'test description', //Maxlen(255) 'submitted_url' => 'http://tinyurl.com/z44rtdzo3f' ), 'visibility' => array( 'code' => 'anyone' )); $post = $li->post('people/~/shares', $post);

            $post = $li->post('people/~/shares', $post);
rmuilwijk commented 8 years ago

Duplicate of #25

testchik commented 7 years ago

It is issue of linkedin created. You can not multiple same post in a day.