{"action":"created","issue":{"url":"https://api.github.com/repos/mailgun/mailgun-go/issues/74","repository_url":"https://api.github.com/repos/mailgun/mailgun-go","labels_url":"https://api.github.com/repos/mailgun/mailgun-go/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/mailgun/mailgun-go/issues/74/comments","events_url":"https://api.github.com/repos/mailgun/mailgun-go/issues/74/events","html_url":"https://github.com/mailgun/mailgun-go/pull/74","id":194081989,"number":74,"title":"added the possibility to set api base URL","user":{"login":"heltonmarx","id":1408246,"avatar_url":"https://avatars.githubusercontent.com/u/1408246?v=3","gravatar_id":"","url":"https://api.github.com/users/heltonmarx","html_url":"https://github.com/heltonmarx","followers_url":"https://api.github.com/users/heltonmarx/followers","following_url":"https://api.github.com/users/heltonmarx/following{/other_user}","gists_url":"https://api.github.com/users/heltonmarx/gists{/gist_id}","starred_url":"https://api.github.com/users/heltonmarx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heltonmarx/subscriptions","organizations_url":"https://api.github.com/users/heltonmarx/orgs","repos_url":"https://api.github.com/users/heltonmarx/repos","events_url":"https://api.github.com/users/heltonmarx/events{/privacy}","received_events_url":"https://api.github.com/users/heltonmarx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-07T15:35:58Z","updated_at":"2016-12-07T22:27:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mailgun/mailgun-go/pulls/74","html_url":"https://github.com/mailgun/mailgun-go/pull/74","diff_url":"https://github.com/mailgun/mailgun-go/pull/74.diff","patch_url":"https://github.com/mailgun/mailgun-go/pull/74.patch"},"body":"With this change, it's possible using `httptest` to test the client, for example:\r\n\r\n```go\r\nsrv := httptest.NewServer(http.HandlerFunc(w http.ResponseWriter, req *http.Request){\r\n// ..test req.Method, req.Path, etc...\r\n}))\r\ndefer srv.Close()\r\n\r\nclient := mg.NewMailgun(domain, apiKey, publicAPIKey)\r\nclient.SetClient(http.DefaultClient)\r\nclient.SetAPIBase(srv.URL)\r\nrsp, id, err := client.Send(message)\r\n```\r\n\r\nAnd bringing more offline testing options."},"comment":{"url":"https://api.github.com/repos/mailgun/mailgun-go/issues/comments/265593638","html_url":"https://github.com/mailgun/mailgun-go/pull/74#issuecomment-265593638","issue_url":"https://api.github.com/repos/mailgun/mailgun-go/issues/74","id":265593638,"user":{"login":"thrawn01","id":9817,"avatar_url":"https://avatars.githubusercontent.com/u/9817?v=3","gravatar_id":"","url":"https://api.github.com/users/thrawn01","html_url":"https://github.com/thrawn01","followers_url":"https://api.github.com/users/thrawn01/followers","following_url":"https://api.github.com/users/thrawn01/following{/other_user}","gists_url":"https://api.github.com/users/thrawn01/gists{/gist_id}","starred_url":"https://api.github.com/users/thrawn01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thrawn01/subscriptions","organizations_url":"https://api.github.com/users/thrawn01/orgs","repos_url":"https://api.github.com/users/thrawn01/repos","events_url":"https://api.github.com/users/thrawn01/events{/privacy}","received_events_url":"https://api.github.com/users/thrawn01/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T22:27:38Z","updated_at":"2016-12-07T22:27:38Z","body":"@heltonmarx I like your implementation better than mine #69. We should get this merged and I'll rebase my work from yours."}}
{"actor":{"display_login":"thrawn01"}}