R httr Linkedin API:错误请求(HTTP 400)
我的问题与此密切相关: 这是我的密码:R httr Linkedin API:错误请求(HTTP 400),r,oauth-2.0,linkedin-api,httr,R,Oauth 2.0,Linkedin Api,Httr,我的问题与此密切相关: 这是我的密码: library(httr) clientid <- "MY-ID" secret <- "MY-SECRET" app <- oauth_app(appname = "app name", key = clientid, secret = secret) endpoint <- oauth_endpoint(base_url = "https://www.l
library(httr)
clientid <- "MY-ID"
secret <- "MY-SECRET"
app <- oauth_app(appname = "app name", key = clientid, secret = secret)
endpoint <- oauth_endpoint(base_url = "https://www.linkedin.com/uas/oauth2",
authorize = "authorization", access = "accessToken")
token <- oauth2.0_token(endpoint = endpoint, app = app)
我使用上提供给我的应用程序的客户端id和密码,并将那里的重定向URL设置为http://localhost:1410/
我使用的是Ubuntu18.04,R版本3.6.3,httr版本“1.4.2”。我认为您可能缺少
oauth2.0\u token()中的scope
参数
你可以使用LinkedIn范围的例子有:scope=“r\u organization\u social”
或scope=“rw\u organization\u admin”
所以它可能看起来像:
token <- oauth2.0_token(endpoint = endpoint, app = app, scope = "rw_organization_admin")
token我认为您可能缺少oauth2.0\u token()
中的scope
参数
你可以使用LinkedIn范围的例子有:scope=“r\u organization\u social”
或scope=“rw\u organization\u admin”
所以它可能看起来像:
token <- oauth2.0_token(endpoint = endpoint, app = app, scope = "rw_organization_admin")
token我解决了更改:token的问题我解决了更改:token的问题