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);
}
在最后一个函数 getGroupsData()
中,我查询了来自 此处 但它发出了错误:
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 加载完毕:GET "https://api.linkedin.com/v1/people/~/group-memberships:(group:(id,name))?membership-state=member"代码>
<代码>错误代码:0消息:拒绝访问组成员身份"requestId:BEVJ2X6T7J"状态:403时间戳:1434439902873__proto__:对象
缺少什么,如何配置请求组url?
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#troubleshooting
这篇关于Linkedin Api:获取我所属的群组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!