我试图使用Rlinkedin包建立到LinkedIn的连接。 我已按照Rlinkedin软件包和r-bloggers链接中的说明进行操作。RLinkedin连接错误
我的代码片段看起来是这样的(同时发布按键被隐藏):
library(Rlinkedin)
app_name <- "XXXX"
consumer_key <- "XXXX"
consumer_secret <- "XXXX"
in.auth <- inOAuth(app_name, consumer_key, consumer_secret)
my.connections <- getMyConnections(in.auth)
我已经证实了它通过浏览器,和我的LinkedIn应用程序页面显示的统计数据连接。 但是我得到一个错误信息如下:
Error in UseMethod("xpathApply") :
no applicable method for 'xpathApply' applied to an object of class "c('xml_document', 'xml_node')"
另外运行:
getCompany(token=in.auth, universal_name="Facebook")
结果错误:
Error in if (!is.na(q.content[["number(//error/status)"]] == 404)) { :
argument is of length zero
我尝试使用the package from github为好,但出现了同样的问题。
我不认为这是支持了。 LinkedIn改变了有关其API的规则。 –