gojiplus / tuber

:sweet_potato: Access YouTube from R
http://gojiplus.github.io/tuber
Other
184 stars 55 forks source link

Error with "oath_app" #34

Closed danielfeloiola closed 7 years ago

danielfeloiola commented 7 years ago

I'm trying to do the authentication, but the program returns a erros saying: Error in oauth_app("google", key = app_id, secret = app_secret) : não foi possível encontrar a função "oauth_app".

Any reasons why it can't find the "oath_app" function? I have no idea why i'm getting this error

soodoku commented 7 years ago

hey man,

the function for authentication is yt_oauth("app_id", "app_password") and not oauth_app()

see: https://github.com/soodoku/tuber

danielfeloiola commented 7 years ago

Yes, I got this bit. I run the code with the id and password but it fails, I don't know what i'm doing wrong. I think the issue is in line 48 but i'm not sure whats causing it

soodoku commented 7 years ago

apologies for misreading your comment. you need to have library(httr) installed and loaded. The function is in httr

danielfeloiola commented 7 years ago

That worked, thanks! (sorry for the stupid question, rookie programmer here)

soodoku commented 7 years ago

no worries. we all start somewhere. best of luck!