{"action":"created","issue":{"url":"https://api.github.com/repos/redcross/smoke-alarm-portal/issues/196","repository_url":"https://api.github.com/repos/redcross/smoke-alarm-portal","labels_url":"https://api.github.com/repos/redcross/smoke-alarm-portal/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/redcross/smoke-alarm-portal/issues/196/comments","events_url":"https://api.github.com/repos/redcross/smoke-alarm-portal/issues/196/events","html_url":"https://github.com/redcross/smoke-alarm-portal/issues/196","id":148867269,"number":196,"title":"API-Level Integration","user":{"login":"MisterJames","id":1197383,"avatar_url":"https://avatars.githubusercontent.com/u/1197383?v=3","gravatar_id":"","url":"https://api.github.com/users/MisterJames","html_url":"https://github.com/MisterJames","followers_url":"https://api.github.com/users/MisterJames/followers","following_url":"https://api.github.com/users/MisterJames/following{/other_user}","gists_url":"https://api.github.com/users/MisterJames/gists{/gist_id}","starred_url":"https://api.github.com/users/MisterJames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MisterJames/subscriptions","organizations_url":"https://api.github.com/users/MisterJames/orgs","repos_url":"https://api.github.com/users/MisterJames/repos","events_url":"https://api.github.com/users/MisterJames/events{/privacy}","received_events_url":"https://api.github.com/users/MisterJames/received_events","type":"User","site_admin":false},"labels":[{"id":419668843,"url":"https://api.github.com/repos/redcross/smoke-alarm-portal/labels/givecamp","name":"givecamp","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":32,"created_at":"2016-04-16T16:27:18Z","updated_at":"2016-11-25T14:15:11Z","closed_at":null,"body":"Hello all,\n\nI'm a contributor on another open source project used by the Red Cross ([AllReady](https://github.com/HTBox/AllReady)) and I'm looking for some information regarding integration with the API. \n\nFor certain regions, we are looking to either receive a post-back when a new smoke alarm is detected (preferred) or periodically poll an end point to \"pick up\" new requests. Any information that you might have would be greatly appreciated. \n\nWe are implementing a web hook approach on our site for implementation of such communication, so it would be trivial for us to expose a URI and give you a token to use as part of the post-back, should that work for you. Perhaps this is something that could be registered with a list of cities, states, or geo-coded info of some kind such that only requests for the designated areas are presented to our end point. \n\nIf you don't have direct support for this type of integration, we can also use services such as IFTTT or Zapier and consume events from those providers.\n\nContacts that I am working with:\n- Red Cross: Jim McGowan\n- Humanitarian Toolbox: Tony Surma\n\nLooking forward to working with you folks!\n\nCheers.\n"},"comment":{"url":"https://api.github.com/repos/redcross/smoke-alarm-portal/issues/comments/262964766","html_url":"https://github.com/redcross/smoke-alarm-portal/issues/196#issuecomment-262964766","issue_url":"https://api.github.com/repos/redcross/smoke-alarm-portal/issues/196","id":262964766,"user":{"login":"mgmccarthy","id":2428993,"avatar_url":"https://avatars.githubusercontent.com/u/2428993?v=3","gravatar_id":"","url":"https://api.github.com/users/mgmccarthy","html_url":"https://github.com/mgmccarthy","followers_url":"https://api.github.com/users/mgmccarthy/followers","following_url":"https://api.github.com/users/mgmccarthy/following{/other_user}","gists_url":"https://api.github.com/users/mgmccarthy/gists{/gist_id}","starred_url":"https://api.github.com/users/mgmccarthy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgmccarthy/subscriptions","organizations_url":"https://api.github.com/users/mgmccarthy/orgs","repos_url":"https://api.github.com/users/mgmccarthy/repos","events_url":"https://api.github.com/users/mgmccarthy/events{/privacy}","received_events_url":"https://api.github.com/users/mgmccarthy/received_events","type":"User","site_admin":false},"created_at":"2016-11-25T14:15:11Z","updated_at":"2016-11-25T14:15:11Z","body":"cc @MisterJames \r\n\r\n@cecilia-donnelly, thanks for explaining how countries, regions and zip codes work together. You don't need to provider us with a list of zips.\r\n\r\nSo, based on what you're telling me, what we'd need to be able to do is to determine on our end is if any of our organizations support the zip code your sending us on the request.\r\n\r\nI'm starting to think it might be as simple as that (unless I'm still missing something). You're sending us both the `zip` and `assigned_rc_region` in the request, so what we could do it look to see if any of the our existing organizations fall into that zip code. That being said, I'm not too sure how/why we would even need the `assinged_rc_region` in the first place\r\n\r\nThis assumption is based off of you only sending us a request where you'd be able to correlate the incoming zip code to the region on your end. If you can't make that association, I imagine you would not invoke our API?\r\n\r\nI'd like to keep AllReady's code-base out of the country/region/zip code look up b/c you already do that on your end and just optimize it for processing requests that its organizations can service.\r\n\r\nThanks\r\n\r\n"}}
{"actor":{"display_login":"mgmccarthy"}}