{"action":"created","issue":{"url":"https://api.github.com/repos/hadley/httr/issues/218","labels_url":"https://api.github.com/repos/hadley/httr/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/hadley/httr/issues/218/comments","events_url":"https://api.github.com/repos/hadley/httr/issues/218/events","html_url":"https://github.com/hadley/httr/issues/218","id":69033502,"number":218,"title":"Allow httr to run without interactive mode ","user":{"login":"adtrombley","id":2440768,"avatar_url":"https://avatars.githubusercontent.com/u/2440768?v=3","gravatar_id":"","url":"https://api.github.com/users/adtrombley","html_url":"https://github.com/adtrombley","followers_url":"https://api.github.com/users/adtrombley/followers","following_url":"https://api.github.com/users/adtrombley/following{/other_user}","gists_url":"https://api.github.com/users/adtrombley/gists{/gist_id}","starred_url":"https://api.github.com/users/adtrombley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adtrombley/subscriptions","organizations_url":"https://api.github.com/users/adtrombley/orgs","repos_url":"https://api.github.com/users/adtrombley/repos","events_url":"https://api.github.com/users/adtrombley/events{/privacy}","received_events_url":"https://api.github.com/users/adtrombley/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-17T00:03:03Z","updated_at":"2015-04-17T10:54:27Z","closed_at":"2015-04-17T10:54:27Z","body":"I can't automate Rscript.exe in a batch file to run this script as it gives me the warning: oath_listener() needs an interactive environment execution terminated\r\n\r\nrequire(RODBC)\r\nrequire(RSQLite)\r\nrequire(RGoogleAnalytics)\r\nrequire(httpuv)\r\nrequire(httr)\r\n\r\nclient.secret <- \"xxx\"\r\nclient.id <- \"xxx.apps.googleusercontent.com\"\r\n\r\ntoken <- Auth(client.id,client.secret)\r\nsave(token,file=\"./token_file\")\r\nValidateToken(token)"},"comment":{"url":"https://api.github.com/repos/hadley/httr/issues/comments/93964151","html_url":"https://github.com/hadley/httr/issues/218#issuecomment-93964151","issue_url":"https://api.github.com/repos/hadley/httr/issues/218","id":93964151,"user":{"login":"hadley","id":4196,"avatar_url":"https://avatars.githubusercontent.com/u/4196?v=3","gravatar_id":"","url":"https://api.github.com/users/hadley","html_url":"https://github.com/hadley","followers_url":"https://api.github.com/users/hadley/followers","following_url":"https://api.github.com/users/hadley/following{/other_user}","gists_url":"https://api.github.com/users/hadley/gists{/gist_id}","starred_url":"https://api.github.com/users/hadley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hadley/subscriptions","organizations_url":"https://api.github.com/users/hadley/orgs","repos_url":"https://api.github.com/users/hadley/repos","events_url":"https://api.github.com/users/hadley/events{/privacy}","received_events_url":"https://api.github.com/users/hadley/received_events","type":"User","site_admin":false},"created_at":"2015-04-17T10:54:27Z","updated_at":"2015-04-17T10:54:27Z","body":"You either need to run it interactively once and cache the credentials when it asks, or you need to use a OAuth server flow."}}