3
我試圖讓使用JavaScript LinkedIn的追隨者數:如何獲得LinkedIn粉絲數量?
<div id="statusDiv">Result</div><script type="text/javascript" src="http://platform.linkedin.com/in.js">
api_key: XXXXX
onLoad: onLinkedInLoad
authorize: true
</script>
<script type="text/javascript">
function onLinkedInLoad() {
IN.API.Raw("/companies/<<company_id>>:(num-followers)")
.result(function(result) { document.getElementById("statusDiv").innerHTML = result.numFollowers; })
.error(function(error) { document.getElementById("statusDiv").innerHTML = error });
}
</script>
但這並不爲我工作。