2016-06-09 95 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