How do I get Linkedin recommendations using the Linkedin API?

How do I get LinkedIn recommendations in PHP?

How do I get educations, recommendationsReceived, skills, twitterAccounts

and the user profile data from the associated API?

How to infer this get type: (this is Dummy Data)

{
  "educations":  {
    "_total": 1,
    "values":  [
       {
        "degree": "MCA",
        "endDate":  {
          "year": 2010
        },
        "fieldOfStudy": "English",
        "id": 68487593,
        "schoolName": "Computer Studies",
        "startDate":  {
          "year": 2007
        }
      }
    ]
  },
  "firstName": "Firstname",
  "id": "k4AWESnyv",
  "recommendationsReceived":  {
    "_total": 1,
    "values":  [
       {
        "recommendationText": "Good Morning.",
        "recommender":  {
          "firstName": "First Name",
          "headline": "Student",
          "lastName": "patel",
          "pictureUrl": "https://media.licdn.com/mpr/mprx/0_V24ZjoIoyZaEFqbRgzWupnoHNs6ORLamtWosKRfVQR3qkss3v",
          "publicProfileUrl": "https://www.linkedin.com/pub/linkedinuser/17/5ba/23a"
        }
      }
    ]
  },
  "skills":  {
    "_total": 9,
    "values":  [
       {
        "id": 2,
        "skill":  {
          "name": "PHP"
        }
      },
       {
        "id": 3,
        "skill":  {
          "name": "Joomla"
        }
      },
       {
        "id": 4,
        "skill":  {
          "name": "Magento"
        }
      },
       {
        "id": 7,
        "skill":  {
          "name": "WordPress"
        }
      },
       {
        "id": 8,
        "skill":  {
          "name": "AJAX"
        }
      },
       {
        "id": 9,
        "skill":  {
          "name": "MySQL"
        }
      },
       {
        "id": 10,
        "skill":  {
          "name": "Web Design"
        }
      },
       {
        "id": 13,
        "skill":  {
          "name": "E-commerce"
        }
      },
       {
        "id": 14,
        "skill":  {
          "name": "HTML5"
        }
      }
    ]
  },
  "twitterAccounts":  {
    "_total": 1,
    "values":  [
       {
        "providerAccountId": "123456789",
        "providerAccountName": "twitterusername"
      }
    ]
  }
}

      

+3


source to share


1 answer


To get related recommendations, you need to do the following:

  • User authentication via OAuth.
  • Get profile data by making an API call.


To get educations, recommendationsReceived, skills, twitterAccounts

along with the user profile data, your API call would look like this:

https://api.linkedin.com/v1/people/~:(id,first-name,skills,educations,recommendations-received,twitter-accounts)?format=json

+3


source







All Articles