Skip to content

Commit

Permalink
update contribute/main.go
Browse files Browse the repository at this point in the history
swapped to simplified init
  • Loading branch information
theriverman committed Sep 27, 2020
1 parent cadae68 commit c5fb579
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions contribute/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,15 @@ func main() {
BaseURL: "https://api.taiga.io",
HTTPClient: &http.Client{},
}
// Initialise client (authenticates to Taiga)
err := client.Initialise()
if err != nil {
panic(err)
}

// Authenticate (get/set Token)
client.AuthByCredentials(&taiga.Credentials{
if err := client.AuthByCredentials(&taiga.Credentials{
Type: "normal",
Username: "admin",
Password: "123123",
})
}); err != nil {
panic(err)
}
me, err := client.User.Me()
if err != nil {
panic(err)
Expand Down

0 comments on commit c5fb579

Please sign in to comment.