Skip to content
This repository was archived by the owner on Apr 2, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ go-trello is a [Go](http://golang.org/) client package for accessing the [Trello
<a href="http://golang.org"><img alt="Go package" src="https://golang.org/doc/gopher/pencil/gopherhat.jpg" width="20%" /></a>
<a href="http://trello.com"><img src="https://d2k1ftgv7pobq7.cloudfront.net/meta/p/res/images/c13d1cd96a2cff30f0460a5e1860c5ea/header-logo-blue.svg" style="height: 80px; margin-bottom: 2em;"></a>

[![GoDoc](https://godoc.org/github.com/VojtechVitek/go-trello?status.png)](https://godoc.org/github.com/VojtechVitek/go-trello)
[![Travis](https://travis-ci.org/VojtechVitek/go-trello.svg?branch=master)](https://travis-ci.org/VojtechVitek/go-trello)
[![GoDoc](https://godoc.org/github.com/profects/go-trello?status.png)](https://godoc.org/github.com/profects/go-trello)
[![Travis](https://travis-ci.org/profects/go-trello.svg?branch=master)](https://travis-ci.org/profects/go-trello)

Example
-------
Expand All @@ -18,7 +18,7 @@ import (
"fmt"
"log"

"github.com/VojtechVitek/go-trello"
"github.com/profects/go-trello"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, I can't merge this import path

)

func main() {
Expand Down
10 changes: 10 additions & 0 deletions board.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,13 @@ func (b *Board) Actions(arg ...*Argument) (actions []Action, err error) {
}
return
}

func (b *Board) Plugins() (plugins []Plugin, err error) {
body, err := b.client.Get("/boards/" + b.Id + "/boardPlugins")
if err != nil {
return
}

err = json.Unmarshal(body, &plugins)
return
}
10 changes: 10 additions & 0 deletions card.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,16 @@ func (c *Card) Members() (members []Member, err error) {
return
}

func (c *Card) PluginData() (pluginData []PluginData, err error) {
body, err := c.client.Get("/cards/" + c.Id + "/pluginData")
if err != nil {
return
}

err = json.Unmarshal(body, &pluginData)
return
}

func (c *Card) Attachments() (attachments []Attachment, err error) {
body, err := c.client.Get("/cards/" + c.Id + "/attachments")
if err != nil {
Expand Down
17 changes: 7 additions & 10 deletions organization.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,13 @@ import (

type Organization struct {
client *Client
Id string `json:"id"`
Name string `json:"name"`
DisplayName string `json:"displayName"`
Desc string `json:"desc"`
DescData string `json:"descData"`
Url string `json:"url"`
Website string `json:"website"`
LogoHash string `json:"logoHash"`
Products []string `json:"products"`
PowerUps []string `json:"powerUps"`
Id string `json:"id"`
Name string `json:"name"`
DisplayName string `json:"displayName"`
Desc string `json:"desc"`
Url string `json:"url"`
Website string `json:"website"`
LogoHash string `json:"logoHash"`
}

func (c *Client) Organization(orgId string) (organization *Organization, err error) {
Expand Down
16 changes: 16 additions & 0 deletions plugin.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package trello

type Plugin struct {
ID string `json:"id"`
BoardID string `json:"idBoard"`
PluginID string `json:"idPlugin"`
}

type PluginData struct {
ID string `json:"id"`
PluginID string `json:"idPlugin"`
Scope string `json:"scope"`
ModelID string `json:"idModel"`
Value string `json:"value"`
Access string `json:"access"`
}
2 changes: 1 addition & 1 deletion tests/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"os"
"testing"

"github.com/VojtechVitek/go-trello"
"github.com/profects/go-trello"

. "github.com/franela/goblin"
. "github.com/onsi/gomega"
Expand Down