dmpe / urlshorteneR

R package for 2 URL shortening service :loudspeaker: Compatible with Bitly API v4
http://cran.r-project.org/package=urlshorteneR
Apache License 2.0
22 stars 7 forks source link

"Error: oauth_listener() needs an interactive environment." when running script from cron #11

Closed sillasgonzaga closed 7 years ago

sillasgonzaga commented 7 years ago

I've tried to create a twitter bot using your package in which its script needs to be run automatically by using cron.

However, I've come across the oauth_listener() error. Is there any way to use your package in a non interactive env?

sillasgonzaga commented 7 years ago

Actually the solution was pretty easy. I just had to save the goo.gl token locally and load() it in the script.

dmpe commented 7 years ago

thanks for letting me know