0
在我的代碼linkedInProfile不是一個函數,錯誤顯示在控制檯如何解決該錯誤?鏈接在node.js的數據報廢
var linkedInProfile = require('linkedin-public-profile');
app.get('/api/webapi/:version/users', function(req,res){
var url = 'https://www.linkedin.com/in/bansridamani/';
linkedInProfile(url).then(profile => {
console.log(profile);
});
var request = require('request-promise');
request(url)
.then(html => linkedInProfile(html))
.then(profile => {
console.log(profile);
});
});