Creates an Oauth2.0 token object used to access the Yahoo Fantasy API See `httr::Token2.0` for details and functionality.
Arguments
- my_key
String provided my registering an application with Yahoo Developer Network
- my_secret
String provided my registering an application with Yahoo Developer Network
- app_name
String name of app you provided to Yahoo Developer Network
- ...
Arguments passed on to `httr::oauth2.0_token()`.
Details
The first time `y_create_token()` is run the console will ask for a code and a web browser should open and ask you to log in to YAHOO! and after it will give the user a code. Copy and paste this code into the console to create your access token. If this step is being a nuisance and your default browser is Chrome try Firefox.
By default caching is enabled and httr will create a .httr-oauth file and you can refresh your token with `my_token$refresh()`.