linkedin-api

LinkedIn shares API-v2 returns scrambled shares

▼魔方 西西 提交于 2019-12-07 22:58:39
问题 I am fully confused with the logic LinkedIn Shares API have in place, because what I read from the documentation about the shares LinkedIn API shares documentation it mentions that all posts are ordered based on created time and we can paginate by specifying start=(100, 200, 300 ,.... n)to get old posts. But that seems to be not true, see the scenarios below. I perform Shares API calls to get latest posts using https://api.linkedin.com/v2/shares?q=owners&owners={URN}&sharesPerOwner=1000&count

where to find the Oauth token and secret in the linkedin application

China☆狼群 提交于 2019-12-07 21:59:43
问题 I am trying to practice the examples in the book "mining the social web". Unlike the applications I had created in twitter and facebook, the Oauth token and secret in the linkedin never show up. I only see my client ID and client secret . by the way, since I do not have any personal url, can someone explain to me what is the appropriate URL I should enter? In the twitter and facebook applications, I just randomly entered some URL, like www.twitter.com, and it worked. In this application for

Incomplete Linkedin OAuth 2.0 access token response

萝らか妹 提交于 2019-12-07 19:39:05
问题 My question is about OAuth2 access token response from Linkedin api. When I'm trying to get this token I recieve the following response: {"access_token":"...","expires_in":...} But the thing is that according to OAuth2 documentation (in 5.1 paragraph) there should be at least one more required parameter - "token_type". So the question is : could it be somehow customized so the linkedin API will return this parameter with access token response or it is just a departure from the rule and this

Retrieve UGC Posts through LinkedIn V2 API got ClassCastException error

北城余情 提交于 2019-12-07 05:40:50
问题 I'm trying to retrieve a list of UGC posts by calling the following API https://api.linkedin.com/v2/ugcPosts?q=authors&authors=List%28urn%3Ali%3Aorganization%3A[ORG_ID]%29 [ORG_ID] is id of my organization. Then I got this error { "serviceErrorCode": 0, "message": "java.lang.ClassCastException: java.lang.String cannot be cast to com.linkedin.data.DataComplex", "status": 500 } I've already authorized to use API V2 and include X-Restli-Protocol-Version:2.0.0 in the header. 回答1: I was having

Create a image share for linkedin api v2 by php

廉价感情. 提交于 2019-12-06 20:33:26
I write a code which share a post on linkedin account. My code is working fine for text post but facing issue in image post. I tried and search a lot but not find any success for now. Here is my code for image share in linkedin V2 api. I follow this doc https://docs.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/share-on-linkedin?context=linkedin/consumer/context /*1.Register your image to be uploaded.*/ $imageData = array ( 'registerUploadRequest' => array ( 'recipes' => array ( 0 => 'urn:li:digitalmediaRecipe:feedshare-image', ), 'owner' => 'urn:li:person:'.$data['identifier']

No large images in shares posted using LinkedIn API

╄→гoц情女王★ 提交于 2019-12-06 13:55:34
问题 During last couple of weeks any shares made using LinkedIn sharing API don't display large images, though we provide all required information for this, including image URL. The same happens when we use REST Console. Below you can see a sample request and how the share looks like. { "comment": "How Triggre achieves its simplicity", "content": { "title": "Triggre / Blog / Design Philosophy - Part 3", "description": "In the previous two posts about our design philosophy you could read how we

where to find the Oauth token and secret in the linkedin application

时光毁灭记忆、已成空白 提交于 2019-12-06 10:03:44
I am trying to practice the examples in the book "mining the social web". Unlike the applications I had created in twitter and facebook, the Oauth token and secret in the linkedin never show up. I only see my client ID and client secret . by the way, since I do not have any personal url, can someone explain to me what is the appropriate URL I should enter? In the twitter and facebook applications, I just randomly entered some URL, like www.twitter.com, and it worked. In this application for linkedin, I entered www.linkedin.com, but no Oauth token comes out. I know this question is too basic

LinkedIn shares API-v2 returns scrambled shares

左心房为你撑大大i 提交于 2019-12-06 08:15:22
I am fully confused with the logic LinkedIn Shares API have in place, because what I read from the documentation about the shares LinkedIn API shares documentation it mentions that all posts are ordered based on created time and we can paginate by specifying start=(100, 200, 300 ,.... n)to get old posts. But that seems to be not true, see the scenarios below. I perform Shares API calls to get latest posts using https://api.linkedin.com/v2/shares?q=owners&owners={URN}&sharesPerOwner=1000&count=100&start=0&AccessToke={token} Scenario 1 -- API call: start=0, count=100 -- result set: 100 posts,

Error on sharing the content to LinkedIn

China☆狼群 提交于 2019-12-06 06:43:21
I have successfully integrated LinkedIn native application in my application using LinkedIn mobile SDK . I am able to login successfully with my application but the problem is with sharing the content. While I successfully logged in , want to share my content to Linked in but it always give me error response { "errorCode": 0, "message": "Access to posting shares denied", "requestId": "MBB3L0G1KZ", "status": 403, "timestamp": 1452172936679 } though i have added all permission to LinkedIn I have made share function. void shareImageOnLinkedIn() { String shareJsonText = "{ \n" + " \"comment\":\""

Incorrect sorting on retrieve shares via api.linkedin.com/v2/shares

和自甴很熟 提交于 2019-12-06 06:06:46
According to the documentation , shares are ordered by creation time with the most recent share being the first. But when I request shares, they received with sorting by last modified time . Example: https://www.linkedin.com/company/cadencepcb/ Request: curl -H "Authorization: Bearer TOKEN" -H "Accept: application/json" "https://api.linkedin.com/v2/shares?owners=urn:li:organization:28610896&q=owners&sharesPerOwner=10&start=0" Response: receive list of shares with this sequence: Created: 05/27/2019 8:00pm Modified: 05/27/2019 8:00pm Created: 06/19/2018 1:00pm Modified: 05/27/2019 3:58pm Created