octosend

package module
v0.0.0-...-7f4906c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2015 License: MIT Imports: 7 Imported by: 0

README

go-octosend

🔧 Golang client for the Octosend API

GoDoc

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	APIUrl = "https://api.octosend.com/api"
)

Functions

This section is empty.

Types

type Domain

type Domain struct {
	Name string `json:"name"`
}

type OctosendAPI

type OctosendAPI struct {
	Token string
	Debug bool
}

func NewAPI

func NewAPI(username, password string) (*OctosendAPI, error)

func NewAPIByToken

func NewAPIByToken(token string) *OctosendAPI

func (*OctosendAPI) GetDomain

func (a *OctosendAPI) GetDomain(domain string) (*Domain, error)

func (*OctosendAPI) GetRequest

func (a *OctosendAPI) GetRequest(path string) ([]byte, error)

func (*OctosendAPI) GetSpoolerMessage

func (a *OctosendAPI) GetSpoolerMessage(spoolerToken string) (*SpoolerMessage, error)

type SpoolerMessage

type SpoolerMessage struct {
	Attachments []string          `json:"attachments"`
	Headers     map[string]string `json:"headers"`
	Parts       []string          `json:"parts"`
	Recipient   string            `json:"recipient"`
	Sender      string            `json:"sender"`
	Subject     string            `json:"subject"`
	Unsubscribe string            `json:"unsubscribe"`
	Variables   map[string]string `json:"variables"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL