{"action":"opened","issue":{"url":"https://api.github.com/repos/ion-channel/pyionic/issues/28","repository_url":"https://api.github.com/repos/ion-channel/pyionic","labels_url":"https://api.github.com/repos/ion-channel/pyionic/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/ion-channel/pyionic/issues/28/comments","events_url":"https://api.github.com/repos/ion-channel/pyionic/issues/28/events","html_url":"https://github.com/ion-channel/pyionic/issues/28","id":309139868,"number":28,"title":"report delivery status","user":{"login":"patrickpierson","id":16248685,"avatar_url":"https://avatars3.githubusercontent.com/u/16248685?v=4","gravatar_id":"","url":"https://api.github.com/users/patrickpierson","html_url":"https://github.com/patrickpierson","followers_url":"https://api.github.com/users/patrickpierson/followers","following_url":"https://api.github.com/users/patrickpierson/following{/other_user}","gists_url":"https://api.github.com/users/patrickpierson/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickpierson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickpierson/subscriptions","organizations_url":"https://api.github.com/users/patrickpierson/orgs","repos_url":"https://api.github.com/users/patrickpierson/repos","events_url":"https://api.github.com/users/patrickpierson/events{/privacy}","received_events_url":"https://api.github.com/users/patrickpierson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-27T21:25:59Z","updated_at":"2018-03-27T21:25:59Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"using sample code add reporting on delivery status\r\n\r\n```\r\n# Delivery details\r\nscanner = core.Scanner()\r\nlatest_delivery = scanner.get_analysis_status(team_id=team,project_id=project['id'],analysis_id=latest_analysis_id)['data']['deliveries']\r\nif len(latest_delivery) > 0:\r\n  print('Delivered')\r\n  delivery_status = 'Delivered'\r\nelse:\r\n  print('Failed')\r\n   delivery_status = 'Failed'\r\n```"}}
{"actor":{"display_login":"patrickpierson"}}