2016-06-09 134 views
0

我试图使用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为好,但出现了同样的问题。

+1

我不认为这是支持了。 LinkedIn改变了有关其API的规则。 –

回答

2

他们改变了对去年五月的API的规则。您必须通过贵公司全面合作伙伴关系,才能使用该软件包中的功能。

我去年接触量LinkedIn的开发者计划,即使这样的东西,你可以查询是微不足道的,仅限于自己的个人资料后,跑这包升高,但非合作伙伴的权限。

On May 12th 2015 LinkedIn changed the availability for most of their API endpoints. In order to gain full access to the API, you must apply to their Partnership Program. You can find detailed information regarding what endpoints are still openly available in their Transition Guide.

Regarding this R package, the following lists cover which functions are and are not available for non-partners. If I gain access to their partnership program I will update the package accordingly.

正如你可以从上面的报价(从包装的GitHub的网页拍摄)看,连包的作者没有合作伙伴访问。

+0

而只是仅供参考 - 我曾尝试接触到LinkedIn多次试图获得访问只是这样我就可以保持完全封装起来了最新的,但我还没有收到答复。我希望随着微软收购Revo,他们会对开源社区有点友善:) – mrp