简体   繁体   中英

Linkedin Signin Profile Picture URL in v2 API

I am getting Profile picture URN, can anyone please help me out to get profile picture URL from URN .

here is what we getting from linkedin r_liteprofile .

{
  "lastName": {
    "localized": {
      "en_US": "lastname"
    },
    "preferredLocale": {
      "country": "US",
      "language": "en"
    }
  },
  "firstName": {
    "localized": {
      "en_US": "firstname"
    },
    "preferredLocale": {
      "country": "US",
      "language": "en"
    }
  },
  "profilePicture": {
    "displayImage": "urn:li:digitalmediaAsset:C5603AQF_Vo5V5fn5eg"
  },
  "id": "FFeEsrZu6r"
}

I am already tried below format to get Profile Picture from URN

https://api.linkedin.com/v2/me?projection=(FFeEsrZu6r,profilePicture(urn:li:digitalmediaAsset:C5603AQF_Vo5V5fn5eg),oauth2_access_token=AQVMHHg5ML1RXq1Et3t8qtFvIFXnviuJKaVpSZQ5IjV83hfUVn1UvIfHNNOqerVDZqXxj01w3Nn7D013Y7-oe5GT5rhltLAR55YnSaepQrxdvmbBZnfYD39r9iCnuazciSi8y8gPdZ0zmRmqgio5xlBCjkyoTKvGFCB6jAy-UA7CN9kpJr98BWGmtR4T8cIWc8h1OBzCJBwQC2DpHImN78a517uONveMt8oJeaF6pnHMZRyiyDyyj9VHv1PXP7s78rTIk4eR5Dq7GR5MPtyE-O9w0DgESNJ7Df5wjcLX4o0Zb8KKeu8UWOY6q_P91unZ9xo-mBXhATtsCghigclS98eGZS_8Xg)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM