Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/410.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 无法从linkedIn api获取完整信息_Javascript_Php_Jquery_Linkedin Api - Fatal编程技术网

Javascript 无法从linkedIn api获取完整信息

Javascript 无法从linkedIn api获取完整信息,javascript,php,jquery,linkedin-api,Javascript,Php,Jquery,Linkedin Api,我试过这个 Html: <a id="li_ui_li_gen_1432549871566_0-link" class="" href="javascript:void(0);" onclick="onLinkedInLoad();" style="margin-bottom: 20px;"> function onLinkedInLoad(logintype) { IN.User.authorize(function(){ callback(); }

我试过这个

Html:

<a id="li_ui_li_gen_1432549871566_0-link" class="" href="javascript:void(0);" onclick="onLinkedInLoad();" style="margin-bottom: 20px;">
function onLinkedInLoad(logintype) {

  IN.User.authorize(function(){
          callback();
  });      

}
function callback(){
        IN.Event.on(IN, "auth", OnLinkedInAuth);
        OnLinkedInAuth();
}
function OnLinkedInAuth(){     

    IN.API.Profile("me")
.fields("firstName", "lastName", "industry", "location:(name)", "picture-url", "headline", "summary", "num-connections", "public-profile-url", "distance", "positions", "email-address", "educations:(id,school-name,field-of-study,start-date,end-date,degree,activities,notes)","languages:(id,language:(name),proficiency:(level,name))","skills:(id,skill:(name))", "date-of-birth")
.result(ShowProfileData)
.error(displayProfilesErrors);    
}

function ShowProfileData(profiles) {
    console.log(profiles); return false;

    //its gives me json responce 
    /*   {
        "_total": 1,
        "values": [{
          "_key": "~",
          "distance": 0,
          "emailAddress": "xxxxx@gmail.com",
          "firstName": "xxxx",
          "headline": "xxxxx",
          "industry": "Information Technology and Services",
          "lastName": "xxx",
          "location": {"name": "xxx Area, India"},
          "numConnections": 117,
          "positions": {
            "_total": 1,
            "values": [{
              "company": {
                "id": xxxxx,
                "industry": "E-Learning",
                "name": "xxxx",
                "size": "501-1000 employees",
                "type": "Privately Held"
              },
              "id": 485779823,
              "isCurrent": true,
              "startDate": {
                "month": 2,
                "year": 2013
              },
              "title": "xxxxx"
            }]
          },
          "publicProfileUrl": "https://www.linkedin.com/pub/xxxxx/xx/xx/xx"
        }]
      } */      
}
function displayProfilesErrors(error) {
    profilesDiv = document.getElementById("profiles");
    profilesDiv.innerHTML = error.message;
    console.log(error);
}

在我看来,某些查询字段(如语言、技能、教育字段)要求您的申请已获得LinkedIn应用程序的批准


请参阅:页面,其中列出了需要附加API的字段(即“可与LinkedIn开发者标题一起应用的成员配置文件字段”),并查看如何申请使用此API:页面。

在我看来,一些查询的字段(例如语言、技能、教育字段)要求您的申请已获得LinkedIn应用程序的批准


请参阅:页面,其中列出了需要附加API的字段(即“可与LinkedIn开发者标题一起应用的成员配置文件字段”),并查看如何申请使用此API:页面。

有什么问题吗?你的问题是什么?@Mariano。。我无法从api获取教育、语言、技能字段(“名字”、“姓氏”、“行业”、“地点:(名称)”、“图片url”、“标题”、“摘要”、“num连接”、“公共配置文件url”、“距离”、“职位”、“电子邮件地址”、“教育:(id、学校名称、学习领域、开始日期、结束日期、学位、活动、备注)”、“语言:(身份证,语言:(姓名),熟练程度:(级别,姓名)),“技能:(身份证,技能:(姓名)),“出生日期”)几乎没有什么问题吗?你的问题是什么?@Mariano..我无法从api获得教育,语言,技能字段(“名字”,“姓氏”,“行业”,“地点:(姓名)”,“图片url”,“标题”,“摘要”,“num连接”,“公众档案url”、“距离”、“职位”、“电子邮件地址”、“教育程度:(身份证、学校名称、学习领域、开始日期、结束日期、学位、活动、笔记)”、“语言:(身份证、语言:(姓名)、熟练程度:(级别、姓名)”、“技能:(身份证、技能:(姓名)”、“出生日期”)几乎没有