J'écris une application C # pour utiliser API de Linkedin .
Je souhaite pouvoir interroger "Personne" (Prénom + Nom) et récupérer toutes les informations possibles sur ce groupe de personnes with the same name
J'utilise actuellement ma propre implémentation des appels REST API aux côtés de People-Search API.
Voici un exemple d'une demande qui, je le sais, fonctionne:
https://api.linkedin.com/v1/people-search:(people:(id,first-name,last-name,headline,picture-url),num-results)?
Je le lance avec: first-name=parameter&last-name=parameter after the ? mark
Le problème est que je veux récupérer plus d'informations telles que le titre, l'industrie, l'entreprise actuelle, l'école actuelle, etc. Reportez-vous ici pour la liste des paramètres possibles.
Cette notation est ce qu'ils appellent Sélecteurs de champs
Comment structurer mon appel API afin de pouvoir obtenir toutes les informations possibles sur quelqu'un?
Vous avez déjà noté la notation, tout ce que vous avez à faire est d'ajouter le reste des sélecteurs de champs, en les imbriquant là où vous en avez besoin:
https://api.linkedin.com/v1/people-search:(people:(id,first-name,last-name,headline,picture-url,industry,positions:(id,title,summary,start-date,end-date,is-current,company:(id,name,type,size,industry,ticker)),educations:(id,school-name,field-of-study,start-date,end-date,degree,activities,notes)),num-results)?first-name=parameter&last-name=parameter
Gardez à l'esprit que d'après les Profile Field docs , vous ne pouvez obtenir des formations que pour les connexions au 1er degré de l'utilisateur actuel.
Voici l'URL pour obtenir tout pour un profil utilisateur:
Nécessite un jeton d'accès Oauth2.
Le voici dans une liste Nice String (Java):
apiUrl
+ "/v1/people/~:("
+ "id,"
+ "first-name,"
+ "last-name,"
+ "headline,"
+ "picture-url,"
+ "industry,"
+ "summary,"
+ "specialties,"
+ "positions:("
+ "id,"
+ "title,"
+ "summary,"
+ "start-date,"
+ "end-date,"
+ "is-current,"
+ "company:("
+ "id,"
+ "name,"
+ "type,"
+ "size,"
+ "industry,"
+ "ticker)"
+"),"
+ "educations:("
+ "id,"
+ "school-name,"
+ "field-of-study,"
+ "start-date,"
+ "end-date,"
+ "degree,"
+ "activities,"
+ "notes),"
+ "associations," /* Full Profile */
+ "interests,"
+ "num-recommenders,"
+ "date-of-birth,"
+ "publications:("
+ "id,"
+ "title,"
+ "publisher:(name),"
+ "authors:(id,name),"
+ "date,"
+ "url,"
+ "summary),"
+ "patents:("
+ "id,"
+ "title,"
+ "summary,"
+ "number,"
+ "status:(id,name),"
+ "office:(name),"
+ "inventors:(id,name),"
+ "date,"
+ "url),"
+ "languages:("
+ "id,"
+ "language:(name),"
+ "proficiency:(level,name)),"
+ "skills:("
+ "id,"
+ "skill:(name)),"
+ "certifications:("
+ "id,"
+ "name,"
+ "authority:(name),"
+ "number,"
+ "start-date,"
+ "end-date),"
+ "courses:("
+ "id,"
+ "name,"
+ "number),"
+ "recommendations-received:("
+ "id,"
+ "recommendation-type,"
+ "recommendation-text,"
+ "recommender),"
+ "honors-awards,"
+ "three-current-positions,"
+ "three-past-positions,"
+ "volunteer"
+ ")"
+ "?oauth2_access_token="+ token;