1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-03-17 20:47:57 +02:00

Adding logo and fixing some README instructions

This commit is contained in:
Bob Briski 2018-04-28 21:26:52 +10:00
parent 837555c393
commit bc3f5ad2d4
2 changed files with 7 additions and 5 deletions

View File

@ -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)

View File

Before

Width:  |  Height:  |  Size: 251 KiB

After

Width:  |  Height:  |  Size: 251 KiB