我想所有我的LinkedIn的API memeber组。 我使用的JavaScript SDK此:
<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()
我查询的网址:“/人/〜/组成员:(组:(ID,姓名))?成员状态=成员”从这里 ,但它发出的错误:
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
现在缺少的,如何配置请求组网址是什么?