Linkedin Api:获取组成员 [英] Linkedin Api: Get Groups I am a Member Of
问题描述
我想获得我属于linkedin API的所有组.我为此使用 JavaScript SDK :
I want to get all the groups I'm memeber of the linkedin API. I use JavaScript SDK for this:
<head>
<script type="text/javascript" src="//platform.linkedin.com/in.js">
api_key: 77iju32v9t2i18
onLoad: onLinkedInLoad
authorize: true
</script>
<script type="text/javascript">
// Setup an event listener to make an API call once auth is complete
function onLinkedInLoad() {
IN.Event.on(IN, "auth", getGroupsData);
}
function onSuccessGroup(data) {
console.log(data);
}
function onError(error) {
console.dir(error);
}
// Use the API call wrapper to request the member's basic profile data
function getProfileData() {
IN.API.Raw("/people/~").result(onSuccess).error(onError);
}
function getGroupsData() {
IN.API.Raw("/people/~/group-memberships:(group:(id,name))?membership-state=member").result(onSuccessGroup).error(onError);
}
In the last function getGroupsData()
I queried the url: "/people/~/group-memberships:(group:(id,name))?membership-state=member" from here but it issued the error:
XHR finished loading: GET "https://api.linkedin.com/v1/people/~/group-memberships:(group:(id,name))?membership-state=member"
errorCode: 0
message: "Access to group-memberships denied"
requestId: "BEVJ2X6T7J"
status: 403
timestamp: 1434439902873
__proto__: Object
errorCode: 0
message: "Access to group-memberships denied"
requestId: "BEVJ2X6T7J"
status: 403
timestamp: 1434439902873
__proto__: Object
缺少什么,如何配置请求组网址?
What's missing, how to configure request group url?
推荐答案
根据新的开发人员程序
如果您的应用程序当前正在使用任何其他API服务(例如 连接,组,人员搜索,邀请,工作搜索等),您 必须申请成为相关合作伙伴计划的成员 提供必要的API访问权限以继续利用任何 上面未列出的端点.
If your application is currently using any other API services (e.g. Connections, Groups, People Search, Invitation, Job Search, etc.) you will have to apply to become a member of a relevant Partner Program that provides the necessary API access to continue to leverage any of the endpoints that are not listed above.
更多信息: https://developer.linkedin.com/support/developer -program-transition#故障排除
这篇关于Linkedin Api:获取组成员的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!