Skip to content
This repository has been archived by the owner on Apr 2, 2022. It is now read-only.

Commit

Permalink
Added function to fetch a list's actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dennmart committed Jan 27, 2016
1 parent 7055ed9 commit c7d7d91
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions list.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,16 @@ func (l *List) Cards() (cards []Card, err error) {
}
return
}

func (l *List) Actions() (actions []Action, err error) {
body, err := l.client.Get("/lists/" + l.Id + "/actions")
if err != nil {
return
}

err = json.Unmarshal(body, &actions)
for i := range actions {
actions[i].client = l.client
}
return
}

0 comments on commit c7d7d91

Please sign in to comment.