diff --git a/README.md b/README.md index b57c20e..de33eca 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [Go](https://golang.org/) client library for [Atlassian JIRA](https://www.atlassian.com/software/jira). -![Go client library for Atlassian JIRA](./img/go-jira-compressed.png "Go client library for Atlassian JIRA.") +![Go client library for Atlassian JIRA](./img/logo.png "Go client library for Atlassian JIRA.") ## Features @@ -145,13 +145,14 @@ import ( ) func main() { + base := "https://my.jira.com" tp := jira.CookieAuthTransport{ Username: "username", Password: "password", - BaseURL: "https://my.jira.com", + AuthURL: fmt.Sprintf("%s/rest/auth/1/session", base), } - jiraClient, err := jira.NewClient(tp.Client(), tp.BaseURL) + jiraClient, err := jira.NewClient(tp.Client(), base) if err != nil { panic(err) } @@ -198,13 +199,14 @@ import ( ) func main() { + base := "https://my.jira.com" tp := jira.CookieAuthTransport{ Username: "username", Password: "password", - BaseURL: "https://my.jira.com", + AuthURL: fmt.Sprintf("%s/rest/auth/1/session", base), } - jiraClient, _ := jira.NewClient(tp.Client(), tp.BaseURL) + jiraClient, err := jira.NewClient(tp.Client(), base) req, _ := jiraClient.NewRequest("GET", "/rest/api/2/project", nil) projects := new([]jira.Project) diff --git a/logo.png b/img/logo.png similarity index 100% rename from logo.png rename to img/logo.png