{"action":"opened","issue":{"url":"https://api.github.com/repos/fusionet24/SetListR/issues/2","repository_url":"https://api.github.com/repos/fusionet24/SetListR","labels_url":"https://api.github.com/repos/fusionet24/SetListR/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/fusionet24/SetListR/issues/2/comments","events_url":"https://api.github.com/repos/fusionet24/SetListR/issues/2/events","html_url":"https://github.com/fusionet24/SetListR/issues/2","id":334266661,"node_id":"MDU6SXNzdWUzMzQyNjY2NjE=","number":2,"title":"Include API KEY in environmental variables","user":{"login":"fusionet24","id":315909,"node_id":"MDQ6VXNlcjMxNTkwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/315909?v=4","gravatar_id":"","url":"https://api.github.com/users/fusionet24","html_url":"https://github.com/fusionet24","followers_url":"https://api.github.com/users/fusionet24/followers","following_url":"https://api.github.com/users/fusionet24/following{/other_user}","gists_url":"https://api.github.com/users/fusionet24/gists{/gist_id}","starred_url":"https://api.github.com/users/fusionet24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fusionet24/subscriptions","organizations_url":"https://api.github.com/users/fusionet24/orgs","repos_url":"https://api.github.com/users/fusionet24/repos","events_url":"https://api.github.com/users/fusionet24/events{/privacy}","received_events_url":"https://api.github.com/users/fusionet24/received_events","type":"User","site_admin":false},"labels":[{"id":796269932,"node_id":"MDU6TGFiZWw3OTYyNjk5MzI=","url":"https://api.github.com/repos/fusionet24/SetListR/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"fusionet24","id":315909,"node_id":"MDQ6VXNlcjMxNTkwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/315909?v=4","gravatar_id":"","url":"https://api.github.com/users/fusionet24","html_url":"https://github.com/fusionet24","followers_url":"https://api.github.com/users/fusionet24/followers","following_url":"https://api.github.com/users/fusionet24/following{/other_user}","gists_url":"https://api.github.com/users/fusionet24/gists{/gist_id}","starred_url":"https://api.github.com/users/fusionet24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fusionet24/subscriptions","organizations_url":"https://api.github.com/users/fusionet24/orgs","repos_url":"https://api.github.com/users/fusionet24/repos","events_url":"https://api.github.com/users/fusionet24/events{/privacy}","received_events_url":"https://api.github.com/users/fusionet24/received_events","type":"User","site_admin":false},"assignees":[{"login":"fusionet24","id":315909,"node_id":"MDQ6VXNlcjMxNTkwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/315909?v=4","gravatar_id":"","url":"https://api.github.com/users/fusionet24","html_url":"https://github.com/fusionet24","followers_url":"https://api.github.com/users/fusionet24/followers","following_url":"https://api.github.com/users/fusionet24/following{/other_user}","gists_url":"https://api.github.com/users/fusionet24/gists{/gist_id}","starred_url":"https://api.github.com/users/fusionet24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fusionet24/subscriptions","organizations_url":"https://api.github.com/users/fusionet24/orgs","repos_url":"https://api.github.com/users/fusionet24/repos","events_url":"https://api.github.com/users/fusionet24/events{/privacy}","received_events_url":"https://api.github.com/users/fusionet24/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/fusionet24/SetListR/milestones/1","html_url":"https://github.com/fusionet24/SetListR/milestone/1","labels_url":"https://api.github.com/repos/fusionet24/SetListR/milestones/1/labels","id":3440203,"node_id":"MDk6TWlsZXN0b25lMzQ0MDIwMw==","number":1,"title":"version 0.5","description":null,"creator":{"login":"fusionet24","id":315909,"node_id":"MDQ6VXNlcjMxNTkwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/315909?v=4","gravatar_id":"","url":"https://api.github.com/users/fusionet24","html_url":"https://github.com/fusionet24","followers_url":"https://api.github.com/users/fusionet24/followers","following_url":"https://api.github.com/users/fusionet24/following{/other_user}","gists_url":"https://api.github.com/users/fusionet24/gists{/gist_id}","starred_url":"https://api.github.com/users/fusionet24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fusionet24/subscriptions","organizations_url":"https://api.github.com/users/fusionet24/orgs","repos_url":"https://api.github.com/users/fusionet24/repos","events_url":"https://api.github.com/users/fusionet24/events{/privacy}","received_events_url":"https://api.github.com/users/fusionet24/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2018-06-20T22:04:57Z","updated_at":"2018-06-20T22:05:07Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-06-20T22:05:07Z","updated_at":"2018-06-20T22:05:07Z","closed_at":null,"author_association":"OWNER","body":"---\r\n\r\nConsider including access token in sys variables. \r\n\r\nOther packages have this integration [spotifyr](https://github.com/charlie86/spotifyr)\r\n\r\n- Benefits:\r\nStops users from having to explicit passing var every time. Can other override as shown below\r\n\r\nDrawbacks:\r\n\r\n- Not clear to new users who don't understand environmental vars\r\n\r\n```r\r\ngetsetListFmAPIKey <- function(API_KEY = Sys.getenv(\"SETLISTFM_API_KEY\"))\r\n{\r\nif(API_KEY == \"\") {\r\n###Offer user to set token?\r\n}\r\nAPI_KEY\r\n}\r\n\r\n```\r\n\r\nOverride example\r\n```r\r\nfoo <- function(API_KEY = getsetListFmAPIKey(), var = NULL)\r\n{\r\n## DO Stuff\r\n}\r\n```"}}
{"actor":{"display_login":"fusionet24"}}