linkedin-api

Problems uploading images with “Share on LinkedIn”

白昼怎懂夜的黑 提交于 2019-12-13 03:47:04
问题 So I am trying to post an image to my personal page through the new v2 LinkedIn API. I am sending the following data: {"author":"urn:li:person:MYID","lifecycleState":"PUBLISHED","visibility":{"com.linkedin.ugc.MemberNetworkVisibility":"PUBLIC"},"specificContent":{"com.linkedin.ugc.ShareContent":{"shareMediaCategory":"IMAGE","shareCommentary":{"text":"Hello. Just testing the LinkedIn API."},"media":[{"status":"READY","originalUrl":"https:\/\/www.bbc.co.uk\/news","title":{"text":"BBC news"},

Create an Image Share over LinkedIn API V2 not working

对着背影说爱祢 提交于 2019-12-13 03:14:12
问题 I use the api version 2.0 and want to create an image share. Linkedin describes your image binary file upload prozess here: https://docs.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/share-on-linkedin?context=linkedin/consumer/context#create-a-text-share If you follow the instructions you will get a 400 HTTP error. I add the Content-Type in the header and get a 201 HTTP status with the X-RestLi-Id in the header. So far so good! If I want to show my created post on linkedin

LinkedIn API “Empty oauth2 access token” error

眉间皱痕 提交于 2019-12-13 00:57:18
问题 Sorry if this is question is not suitable for stackoverflow. I've got access token from Linkedin API. I am trying to use it however I am not sure how to include my access_token. I cannot find any example on documentation. base_url = f'https://api.linkedin.com/v2/people?access_token={linkedin_key}&format=json' requests.get(base_url).json() This outputs {'serviceErrorCode': 65604, 'message': 'Empty oauth2 access token', 'status': 401} does anyone know what's wrong? Thank you. 回答1: The access

broken “updateUrl” when sharing on a company page

旧巷老猫 提交于 2019-12-12 19:09:51
问题 Whenever I share on a company page, the "updateUrl" that is returned leads to a 404 page. https://www.linkedin.com/company/{company_id}/comments?topic={topic_id}&type=U&scope={scope_id}&stype=C&a=yzVb This happens every single time. Before this started happening, there would be a "small" delay between the post and the URL "becoming" valid, now it just stays invalid forever. It's just unacceptable, first you no longer allow OAuth 1 tokens when posting to company pages without any prior notice

Get Post Analytics with Linkedin API v2

十年热恋 提交于 2019-12-12 14:52:44
问题 Recently, I am working on Linkedin API v2 and I have some problems with Get posts of a certain company Get analytics of a certain post I was able to get company statistics by using https://api.linkedin.com/v2/organizationPageStatistics?q=organization&organization={organization URN} But I can't find any API to get the above info. Please help me to resolve above problem. Thanks in advance for any advices. 回答1: Actually linkedin doesn't provide such API like facebook or twitter. They still lack

How to Get Access Token Using LinkedIn API JavaScript SDK

泪湿孤枕 提交于 2019-12-12 09:42:41
问题 I am trying to get LinkedIn Access Token after login. Login is working fine with JavaScript SDK and I'm able to receive "oauth_token" and member_id . I need access_token to verify the email address (if it is not forged on the way). Below is my script: <script> function LoginWithLinkedIn() { IN.User.authorize(afterAuthorization); } function afterAuthorization(response){ debugger if(IN.User.isAuthorized()==true){ getProfileData(); } } function onSuccess(data) { console.log(data); } function

Firebase Auth (with Custom Token, for Linkedin) returns a user with no email and no data (only uid)

戏子无情 提交于 2019-12-12 09:25:31
问题 I'm trying to login with Linkedin and Firebase. I generate on my server the custom token, I have my private key, I use RS256 and this is my payload: "iss" : service_account_email "sub" : service_account_email "aud", "https://identitytoolkit.googleapis.com/google.identity.identitytoolkit.v1.IdentityToolkit" "iat", Date().timeIntervalSince1970 "exp", Date().timeIntervalSince1970.advanced(by: 3600) "uid", String.randomString(length:28) I create the token, send it back to the app and from this I

linkedin api update comment count null

半城伤御伤魂 提交于 2019-12-12 04:33:34
问题 We run a daily job to pick up data from LinkedIn's api and noticed a change today in the values we receive back. They are both actually 0 but one comes back as null now and another comes in as 0 as before. Update: Timestamp: 2017-03-28T19:31:25.281Z, UpdateKey: UPDATE-xxxxxxxx , UpdateType: CMPY NumLikes: 1 , UpdateComments: Total: 0 Update: Timestamp: 2017-03-27T18:37:12Z, UpdateKey: UPDATE-xxxxy , UpdateType: CMPY NumLikes: 0 , UpdateComments: null Does LinkedIn change their data returns

Not getting company info

匆匆过客 提交于 2019-12-12 04:03:37
问题 I am new to this linkedin api. I have made a small example which is working when I am using the keyword search by using the following url: https://api.linkedin.com/v1/company-search:(companies:(id,name,universal-name,website-url,industries,status,logo-url,blog-rss-url,twitter-id,employee-count-range,specialties,locations,description,stock-exchange,founded-year,end-year,num-followers))?keywords={IBM}&oauth2_access_token=<access Token> But when I am searching any company info by using the email

How to get user connection details on my website using JavaScript LinkedIn api?

半腔热情 提交于 2019-12-12 03:08:08
问题 I am trying to get user connection details on my website using JavaScript LinkedIn api. Whenever I request the connection details it gives me this error in my console: https://api.linkedin.com/v1/people/~/connections: 403 Forbidden. This link opens an XML file. I am receiving user basic profile details for eg: it's firstname, lastname, email address, no. of connections, headline, id etc but could not get its connection details. I made a little research and found out that I need to get an