无法通过javascript加载Linkedin API

无法通过javascript加载Linkedin API,javascript,api,linkedin,Javascript,Api,Linkedin,此代码不适用于我,不显示错误,没有任何 <script type="text/javascript" src="http://platform.linkedin.com/in.js"> api_key: xxxxxxxxxxx onLoad: onLinkedInLoad authorize: true </script> <script type="text/javascript"> function onLinkedInLoad()

此代码不适用于我,不显示错误,没有任何

<script type="text/javascript" src="http://platform.linkedin.com/in.js">
    api_key: xxxxxxxxxxx
    onLoad: onLinkedInLoad
    authorize: true
</script>
<script type="text/javascript">
function onLinkedInLoad() {
    IN.API.Raw("/companies/xxxxxxx:(num-followers)");
   .result( function(result) { document.getElementById("statusDiv").innerHTML = result; } )
   .error( function(error) { /* do nothing */ } );
}
</script>

api_密钥:XXXXXXXXXX
onLoad:onLinkedInLoad
授权:正确
函数onLinkedInLoad(){
IN.API.Raw(“/companys/xxxxxxx:(num followers)”);
.result(函数(result){document.getElementById(“statusDiv”).innerHTML=result;})
.error(函数(error){/*不执行任何操作*/});
}

有人能帮我吗?

从表面上看,你很接近。根据调查,你的原始方法是正确的。但是看看

IN.API.Raw("/companies/xxxxxxx:(num-followers)");
删除“;”使其显示为:

IN.API.Raw("/companies/xxxxxxx:(num-followers)")
由于我没有用于链接的开发密钥,因此无法验证或进一步验证