{"action":"created","issue":{"url":"https://api.github.com/repos/tbruyelle/hipchat-go/issues/11","labels_url":"https://api.github.com/repos/tbruyelle/hipchat-go/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/tbruyelle/hipchat-go/issues/11/comments","events_url":"https://api.github.com/repos/tbruyelle/hipchat-go/issues/11/events","html_url":"https://github.com/tbruyelle/hipchat-go/pull/11","id":60195219,"number":11,"title":"Allow passing server base url as parameter","user":{"login":"comandeo","id":1352584,"avatar_url":"https://avatars.githubusercontent.com/u/1352584?v=3","gravatar_id":"","url":"https://api.github.com/users/comandeo","html_url":"https://github.com/comandeo","followers_url":"https://api.github.com/users/comandeo/followers","following_url":"https://api.github.com/users/comandeo/following{/other_user}","gists_url":"https://api.github.com/users/comandeo/gists{/gist_id}","starred_url":"https://api.github.com/users/comandeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/comandeo/subscriptions","organizations_url":"https://api.github.com/users/comandeo/orgs","repos_url":"https://api.github.com/users/comandeo/repos","events_url":"https://api.github.com/users/comandeo/events{/privacy}","received_events_url":"https://api.github.com/users/comandeo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-07T07:13:02Z","updated_at":"2015-03-08T09:15:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/tbruyelle/hipchat-go/pulls/11","html_url":"https://github.com/tbruyelle/hipchat-go/pull/11","diff_url":"https://github.com/tbruyelle/hipchat-go/pull/11.diff","patch_url":"https://github.com/tbruyelle/hipchat-go/pull/11.patch"},"body":"Some companies use standalone HipChat server(s). In this case API base url differs from `defaultBaseUrl` constant. It seems to be a good idea to allow passing base url as a parameter when creating `Client`."},"comment":{"url":"https://api.github.com/repos/tbruyelle/hipchat-go/issues/comments/77740357","html_url":"https://github.com/tbruyelle/hipchat-go/pull/11#issuecomment-77740357","issue_url":"https://api.github.com/repos/tbruyelle/hipchat-go/issues/11","id":77740357,"user":{"login":"tbruyelle","id":92280,"avatar_url":"https://avatars.githubusercontent.com/u/92280?v=3","gravatar_id":"","url":"https://api.github.com/users/tbruyelle","html_url":"https://github.com/tbruyelle","followers_url":"https://api.github.com/users/tbruyelle/followers","following_url":"https://api.github.com/users/tbruyelle/following{/other_user}","gists_url":"https://api.github.com/users/tbruyelle/gists{/gist_id}","starred_url":"https://api.github.com/users/tbruyelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbruyelle/subscriptions","organizations_url":"https://api.github.com/users/tbruyelle/orgs","repos_url":"https://api.github.com/users/tbruyelle/repos","events_url":"https://api.github.com/users/tbruyelle/events{/privacy}","received_events_url":"https://api.github.com/users/tbruyelle/received_events","type":"User","site_admin":false},"created_at":"2015-03-08T09:15:02Z","updated_at":"2015-03-08T09:15:02Z","body":"I'm not sure this is really relevant because `Client.BaseUrl` is public.\r\n\r\nYou can change the API url after invoking NewClient, like done in [the tests' setup](https://github.com/google/go-github/blob/master/github/github_test.go#L46).\r\n\r\n```go\r\nclient = NewClient(\"<auth token>\")\r\nclient.BaseURL = url\r\n```"}}