LinkedIn API - get information about my ALL Connections

后端 未结 5 1071
[愿得一人]
[愿得一人] 2020-12-29 04:36

I have used Facebook API but I am new to Linkedin api.

I need some help on how to get information (name, birthday, etc) about my ALL Connections, and I need help wi

5条回答
  •  孤城傲影
    2020-12-29 05:26

    2019 still works but with a different approach.

    Do this:

    You may follow the steps from here: https://docs.microsoft.com/en-us/linkedin/shared/authentication/authorization-code-flow?context=linkedin/consumer/context

    1 - Create an APP with r_1st_connections permission 2 - Authorization (STEP 2 from link)

    GET https://www.linkedin.com/oauth/v2/authorization
    

    scope should be r_1st_connections (your app must have this permission)

    3 - Log in with your username and password

    4 - Linkedin will return you code

    something like: ?code=QWERTY

    5 - Get your Access Token (STEP 3 from link)

    POST https://www.linkedin.com/oauth/v2/accessToken
    

    6 - Get your connections

    GET https://api.linkedin.com/v2/connections?q=viewer&start=0&count=50
    

    Link: https://docs.microsoft.com/en-us/linkedin/shared/integrations/people/connections-api?context=linkedin/compliance/context

提交回复
热议问题