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 3 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 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 []map[string]interface{}, 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
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