NO LONGER ACTIVELY MAINTAINED - this project should be considered Archived. If you are interested in maintaining an official fork, please contact me directly.
A go interface to the Campaign Monitor API. This provides a very minimal set of features at this point in time - but if everyone who wanted to use Campaign Monitor with their Go application added just one method of their own, this thing would have... well... at least one more method.
A few BTC donations would likely get this flushed out a bit more, as well (https://twitter.com/jkassemi/statuses/397205845898833920).
1N2ALH42LDpqoPvMEpkQNNYgYbFzdd9T3w
go get github.com/jkassemi/campaignmonitor
Currently limited to API key authentication:
import (
cm "github.com/jkassemi/campaignmonitor"
)
client := cm.NewApiClient(os.Getenv("CM_API_KEY"))
// Now use any methods exposed on client
lists, e := client.GetClientSubscriberLists("abcd")
if e != nil {
panic("We had an error! " + e.Error())
}
log.Printf("We've got %d lists for that client", len(lists))
Please fork, add methods, and issue a pull request!