如何从Basic Profile Fields,Location Fields etc
获取所有可用字段(Linked-In REST API
)的列表。
假设我的Linked-In
APP拥有所有权限
提前致谢。
答案 0 :(得分:0)
LinkedIn API文档包含您可以请求的可用字段/说明列表:
https://developer.linkedin.com/docs/fields
假设用户已经使用LinkedIn授权您的应用程序,您可以执行类似(在JS中)的操作:
<script type="text/javascript" src="//platform.linkedin.com/in.js">
api_key: ####
authorize: true
onLoad: getProfileData
</script>
function getProfileData() {
IN.API.Raw("/people/~:(last-name,first-name,positions)").result(onSuccess)
}
function onSuccess(data) {
// do something with `data`
}