{"action":"closed","issue":{"url":"https://api.github.com/repos/danielberkompas/ex_twilio/issues/4","labels_url":"https://api.github.com/repos/danielberkompas/ex_twilio/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/danielberkompas/ex_twilio/issues/4/comments","events_url":"https://api.github.com/repos/danielberkompas/ex_twilio/issues/4/events","html_url":"https://github.com/danielberkompas/ex_twilio/issues/4","id":65277299,"number":4,"title":"Simplify URL generation logic","user":{"login":"danielberkompas","id":1186992,"avatar_url":"https://avatars.githubusercontent.com/u/1186992?v=3","gravatar_id":"","url":"https://api.github.com/users/danielberkompas","html_url":"https://github.com/danielberkompas","followers_url":"https://api.github.com/users/danielberkompas/followers","following_url":"https://api.github.com/users/danielberkompas/following{/other_user}","gists_url":"https://api.github.com/users/danielberkompas/gists{/gist_id}","starred_url":"https://api.github.com/users/danielberkompas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielberkompas/subscriptions","organizations_url":"https://api.github.com/users/danielberkompas/orgs","repos_url":"https://api.github.com/users/danielberkompas/repos","events_url":"https://api.github.com/users/danielberkompas/events{/privacy}","received_events_url":"https://api.github.com/users/danielberkompas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/danielberkompas/ex_twilio/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-30T18:53:18Z","updated_at":"2015-04-04T15:23:09Z","closed_at":"2015-04-04T15:23:09Z","body":"It's tricky to infer which URL a request should be made to, especially with Twilio's nested APIs. The logic that handles this now is convoluted and spread throughout the `Api` module. \r\n\r\nIdeally, there would be a new module, `UrlGenerator` or something, which would handle the complexities here."}}