{"action":"created","issue":{"url":"https://api.github.com/repos/mautic/api-library/issues/45","repository_url":"https://api.github.com/repos/mautic/api-library","labels_url":"https://api.github.com/repos/mautic/api-library/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/mautic/api-library/issues/45/comments","events_url":"https://api.github.com/repos/mautic/api-library/issues/45/events","html_url":"https://github.com/mautic/api-library/issues/45","id":165822958,"number":45,"title":"Support authentication via CLI","user":{"login":"ipso","id":4147850,"avatar_url":"https://avatars.githubusercontent.com/u/4147850?v=3","gravatar_id":"","url":"https://api.github.com/users/ipso","html_url":"https://github.com/ipso","followers_url":"https://api.github.com/users/ipso/followers","following_url":"https://api.github.com/users/ipso/following{/other_user}","gists_url":"https://api.github.com/users/ipso/gists{/gist_id}","starred_url":"https://api.github.com/users/ipso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipso/subscriptions","organizations_url":"https://api.github.com/users/ipso/orgs","repos_url":"https://api.github.com/users/ipso/repos","events_url":"https://api.github.com/users/ipso/events{/privacy}","received_events_url":"https://api.github.com/users/ipso/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mautic/api-library/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-15T16:06:14Z","updated_at":"2016-07-18T06:39:13Z","closed_at":null,"body":"I'm attempting to use the API to manage many contacts/segments in a more automated fashion from a PHP CLI script. However it appears as though the API with OAuth authentication isn't designed for this, as it wants to redirect the CLI script to a URI to login. Of course with no web browser attached this fails everytime. \r\n\r\nIs this possible and if so, is there an example CLI script that can access the Mautic API by chance?"},"comment":{"url":"https://api.github.com/repos/mautic/api-library/issues/comments/233244857","html_url":"https://github.com/mautic/api-library/issues/45#issuecomment-233244857","issue_url":"https://api.github.com/repos/mautic/api-library/issues/45","id":233244857,"user":{"login":"escopecz","id":1235442,"avatar_url":"https://avatars.githubusercontent.com/u/1235442?v=3","gravatar_id":"","url":"https://api.github.com/users/escopecz","html_url":"https://github.com/escopecz","followers_url":"https://api.github.com/users/escopecz/followers","following_url":"https://api.github.com/users/escopecz/following{/other_user}","gists_url":"https://api.github.com/users/escopecz/gists{/gist_id}","starred_url":"https://api.github.com/users/escopecz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/escopecz/subscriptions","organizations_url":"https://api.github.com/users/escopecz/orgs","repos_url":"https://api.github.com/users/escopecz/repos","events_url":"https://api.github.com/users/escopecz/events{/privacy}","received_events_url":"https://api.github.com/users/escopecz/received_events","type":"User","site_admin":false},"created_at":"2016-07-18T06:39:13Z","updated_at":"2016-07-18T06:39:13Z","body":"@vkathirvel you are probably using Mautic 2.x.x. Leads were renamed to contacts. Check updated documentation: https://developer.mautic.org/#contacts"}}
{"actor":{"display_login":"escopecz"}}