diff --git a/README.md b/README.md
index fa58663..8908b2c 100644
--- a/README.md
+++ b/README.md
@@ -5,8 +5,8 @@ go-trello is a [Go](http://golang.org/) client package for accessing the [Trello
-[](https://godoc.org/github.com/VojtechVitek/go-trello)
-[](https://travis-ci.org/VojtechVitek/go-trello)
+[](https://godoc.org/github.com/profects/go-trello)
+[](https://travis-ci.org/profects/go-trello)
Example
-------
@@ -18,7 +18,7 @@ import (
"fmt"
"log"
- "github.com/VojtechVitek/go-trello"
+ "github.com/profects/go-trello"
)
func main() {
diff --git a/board.go b/board.go
index 9f7d7cc..ebc3f0f 100644
--- a/board.go
+++ b/board.go
@@ -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
+}
diff --git a/card.go b/card.go
index 7facf81..b830fbd 100644
--- a/card.go
+++ b/card.go
@@ -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 {
diff --git a/organization.go b/organization.go
index c1fb958..9d67edf 100644
--- a/organization.go
+++ b/organization.go
@@ -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) {
diff --git a/plugin.go b/plugin.go
new file mode 100644
index 0000000..b5bf1e4
--- /dev/null
+++ b/plugin.go
@@ -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"`
+}
diff --git a/tests/client_test.go b/tests/client_test.go
index 858afd4..9002370 100644
--- a/tests/client_test.go
+++ b/tests/client_test.go
@@ -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"