func Register(config map[string]interface{}, f func(interface{}) error) {
	name, ok := config["Name"].(string)
	if name == "" || !ok {
		name = "trello"
	}
	title, ok := config["Title"].(string)
	if title == "" || !ok {
		title = "Trello"
	}
	priority, ok := config["Priority"].(int64)
	if priority == 0 || !ok {
		priority = 800
	}
	key, _ := config["Key"].(string)
	token, _ := config["Token"].(string)
	query, _ := config["Query"].(string)
	rewrite, _ := config["Rewrite"].(string)
	p := Provider{
		provider: "trello",
		name:     name,
		title:    title,
		priority: priority,
		url:      "https://api.trello.com/1",
		key:      key,
		token:    token,
		query:    query,
		rewrite:  rewrite,
	}
	if p.token != "" {
		p.enabled = true
	}
	if err := f(&p); err != nil {
		panic(err)
	}
}
Register registers the provider
package trello
import (
	"encoding/json"
	"errors"
	"fmt"
	"io/ioutil"
	"net/http"
	"net/url"
	"strings"
	"time"
	"golang.org/x/net/context"
	"golang.org/x/net/context/ctxhttp"
)