{"action":"created","issue":{"url":"https://api.github.com/repos/ropensci/ckanr/issues/14","labels_url":"https://api.github.com/repos/ropensci/ckanr/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/ropensci/ckanr/issues/14/comments","events_url":"https://api.github.com/repos/ropensci/ckanr/issues/14/events","html_url":"https://github.com/ropensci/ckanr/issues/14","id":69516355,"number":14,"title":"API-Key","user":{"login":"wush978","id":1252618,"avatar_url":"https://avatars.githubusercontent.com/u/1252618?v=3","gravatar_id":"","url":"https://api.github.com/users/wush978","html_url":"https://github.com/wush978","followers_url":"https://api.github.com/users/wush978/followers","following_url":"https://api.github.com/users/wush978/following{/other_user}","gists_url":"https://api.github.com/users/wush978/gists{/gist_id}","starred_url":"https://api.github.com/users/wush978/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wush978/subscriptions","organizations_url":"https://api.github.com/users/wush978/orgs","repos_url":"https://api.github.com/users/wush978/repos","events_url":"https://api.github.com/users/wush978/events{/privacy}","received_events_url":"https://api.github.com/users/wush978/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-20T06:22:15Z","updated_at":"2015-04-25T14:39:23Z","closed_at":null,"body":"Dear maintainers,\r\n\r\nThe ckan platform allow authentication and authorization with `API-Key` in http request. \r\n\r\nI noticed that we could append the API-Key through `add_headers` with key `X-CKAN-API-Key` to authenticate with ckan server. The main problem to me is a secure way to let the user input their API-Key.\r\n\r\nI propose two way to let the users input their API-Key.\r\n\r\nThe first way is let them set the option properly in `.Rprofile` or somewhere. That is to say, we could read the options from `getOption`. In such way, the user does not need to input their API-Key.\r\n\r\nAnother way is to receive the input through `svDialogs::dlgInput` where the input will not be log into the .history file.\r\n\r\nHow do you think?\r\n\r\nThanks,\r\nWush"},"comment":{"url":"https://api.github.com/repos/ropensci/ckanr/issues/comments/96216500","html_url":"https://github.com/ropensci/ckanr/issues/14#issuecomment-96216500","issue_url":"https://api.github.com/repos/ropensci/ckanr/issues/14","id":96216500,"user":{"login":"sckott","id":577668,"avatar_url":"https://avatars.githubusercontent.com/u/577668?v=3","gravatar_id":"","url":"https://api.github.com/users/sckott","html_url":"https://github.com/sckott","followers_url":"https://api.github.com/users/sckott/followers","following_url":"https://api.github.com/users/sckott/following{/other_user}","gists_url":"https://api.github.com/users/sckott/gists{/gist_id}","starred_url":"https://api.github.com/users/sckott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sckott/subscriptions","organizations_url":"https://api.github.com/users/sckott/orgs","repos_url":"https://api.github.com/users/sckott/repos","events_url":"https://api.github.com/users/sckott/events{/privacy}","received_events_url":"https://api.github.com/users/sckott/received_events","type":"User","site_admin":false},"created_at":"2015-04-25T14:39:23Z","updated_at":"2015-04-25T14:39:23Z","body":"I agree to get the test suite filled out. And will make any more development easier  as we will know when things break. \r\n\r\nI think we can test against the demo server (at http://demo.ckan.org), right?  \r\n\r\nI'll start the tests, and a list in that issue, and we can tick them off as they are completed. You can put your name by ones you are working on. "}}