首页 文章

Linkedin“/ people”API返回错误的位置信息

提问于
浏览
0

我使用linkedin api来检索用户的位置(城市,州,国家)信息,但它没有返回正确的城市信息 .

它似乎是根据提供的邮政编码自行检索城市名称 .

使用的Linkedin API:https://api.linkedin.com/v1/people/~:(certifications:(name,authority,number,start-date,end-date),email-address,first-name,last-name,headline,location:(name,country:(code)),positions,skills,educations,main-address,phone-numbers)?format=json&oauth2_access_token=

1 回答

  • 1

    您的API请求要求LinkedIn提供国家/地区代码,以及成员位置的“名称”,而不是您在问题中建议的城市,州,国家/地区 .

    LinkedIn拥有自己的位置值列表,这些位置值不会100%与城市边界对齐,并且通常表示一般的全球业务区域(例如“旧金山湾区”)

    有关其他信息,请参阅:https://developer.linkedin.com/docs/fields/location

相关问题