0
library(httr)
library(httpuv)
library(jsonlite)
myapi <- oauth_app("github", "0b23485d6d6e55143372",
secret = "xxxxxxxxxxxxxxxxxxxxxxx")
github_token <- oauth2.0_token(oauth_endpoints("github"), myapi)
request1 <- GET("https://api.github.com/users/jtleek/repos", config(token = github_token))
myjson <- content(request1)
myjson2 <- jsonlite::fromJSON(toJSON(myjson))
View(myjson2)
stop_for_status(request1)
#
私はR 3.2.5とWin7の32ビットを使用するエラー。 2つの問題があります。 1つはコードの最後の行の後に、私はエラーエラー:不正(HTTP 401)を取得しました。最後にRはgithubのAPIにconncetするが、資格情報が
And the second is when I tried to see what the github_token is,
<Token>
<credentials> error, error_description, error_uri
#
myjson2データフレームが、単にリスト
$message
[1] "Bad credentials"
$documentation_url
[1] "https://developer.github.com/v3"
おかげでたくさんではありません!