{"action":"created","issue":{"url":"https://api.github.com/repos/alertlogic/erlcloud/issues/124","repository_url":"https://api.github.com/repos/alertlogic/erlcloud","labels_url":"https://api.github.com/repos/alertlogic/erlcloud/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/alertlogic/erlcloud/issues/124/comments","events_url":"https://api.github.com/repos/alertlogic/erlcloud/issues/124/events","html_url":"https://github.com/alertlogic/erlcloud/pull/124","id":180338481,"number":124,"title":"extend aws_request4 function to allow passing custom headers","user":{"login":"KingBrewer","id":18538056,"avatar_url":"https://avatars.githubusercontent.com/u/18538056?v=3","gravatar_id":"","url":"https://api.github.com/users/KingBrewer","html_url":"https://github.com/KingBrewer","followers_url":"https://api.github.com/users/KingBrewer/followers","following_url":"https://api.github.com/users/KingBrewer/following{/other_user}","gists_url":"https://api.github.com/users/KingBrewer/gists{/gist_id}","starred_url":"https://api.github.com/users/KingBrewer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KingBrewer/subscriptions","organizations_url":"https://api.github.com/users/KingBrewer/orgs","repos_url":"https://api.github.com/users/KingBrewer/repos","events_url":"https://api.github.com/users/KingBrewer/events{/privacy}","received_events_url":"https://api.github.com/users/KingBrewer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-30T15:51:27Z","updated_at":"2016-09-30T17:08:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/alertlogic/erlcloud/pulls/124","html_url":"https://github.com/alertlogic/erlcloud/pull/124","diff_url":"https://github.com/alertlogic/erlcloud/pull/124.diff","patch_url":"https://github.com/alertlogic/erlcloud/pull/124.patch"},"body":"Addresses: https://github.com/alertlogic/erlcloud/issues/123\r\n\r\nAfter this change new request may be implemented as:\r\n```erlang\r\nrequest_impl(Config, Action, Params, ApiVersion) ->\r\n    QParams = [{\"Action\", Action}, {\"Version\", ApiVersion}|Params],\r\n    case erlcloud_aws:aws_request4(post, undefined,\r\n                                   Config#aws_config.xxx_host,\r\n                                   undefined, \"/\", QParams, \"xxx\",\r\n                                   [{\"Accept\", \"application/json\"}], Config) of\r\n    {ok, Response} ->\r\n        {ok, jsx:decode(Response)};\r\n    {error, Reason} ->\r\n        {error, Reason}\r\n    end.\r\n```"},"comment":{"url":"https://api.github.com/repos/alertlogic/erlcloud/issues/comments/250799277","html_url":"https://github.com/alertlogic/erlcloud/pull/124#issuecomment-250799277","issue_url":"https://api.github.com/repos/alertlogic/erlcloud/issues/124","id":250799277,"user":{"login":"kkuzmin","id":6872804,"avatar_url":"https://avatars.githubusercontent.com/u/6872804?v=3","gravatar_id":"","url":"https://api.github.com/users/kkuzmin","html_url":"https://github.com/kkuzmin","followers_url":"https://api.github.com/users/kkuzmin/followers","following_url":"https://api.github.com/users/kkuzmin/following{/other_user}","gists_url":"https://api.github.com/users/kkuzmin/gists{/gist_id}","starred_url":"https://api.github.com/users/kkuzmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkuzmin/subscriptions","organizations_url":"https://api.github.com/users/kkuzmin/orgs","repos_url":"https://api.github.com/users/kkuzmin/repos","events_url":"https://api.github.com/users/kkuzmin/events{/privacy}","received_events_url":"https://api.github.com/users/kkuzmin/received_events","type":"User","site_admin":false},"created_at":"2016-09-30T17:08:13Z","updated_at":"2016-09-30T17:08:13Z","body":"+1"}}
{"actor":{"display_login":"kkuzmin"}}