mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-08-06 22:13:02 +02:00
Adding logo and fixing some README instructions
This commit is contained in:
12
README.md
12
README.md
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
[Go](https://golang.org/) client library for [Atlassian JIRA](https://www.atlassian.com/software/jira).
|
[Go](https://golang.org/) client library for [Atlassian JIRA](https://www.atlassian.com/software/jira).
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
@ -145,13 +145,14 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
base := "https://my.jira.com"
|
||||||
tp := jira.CookieAuthTransport{
|
tp := jira.CookieAuthTransport{
|
||||||
Username: "username",
|
Username: "username",
|
||||||
Password: "password",
|
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 {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
@ -198,13 +199,14 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
base := "https://my.jira.com"
|
||||||
tp := jira.CookieAuthTransport{
|
tp := jira.CookieAuthTransport{
|
||||||
Username: "username",
|
Username: "username",
|
||||||
Password: "password",
|
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)
|
req, _ := jiraClient.NewRequest("GET", "/rest/api/2/project", nil)
|
||||||
|
|
||||||
projects := new([]jira.Project)
|
projects := new([]jira.Project)
|
||||||
|
Before Width: | Height: | Size: 251 KiB After Width: | Height: | Size: 251 KiB |
Reference in New Issue
Block a user