Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
APIUrl = "https://api.octosend.com/api"
)
Functions ¶
This section is empty.
Types ¶
type OctosendAPI ¶
func NewAPI ¶
func NewAPI(username, password string) (*OctosendAPI, error)
func NewAPIByToken ¶
func NewAPIByToken(token string) *OctosendAPI
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"` }
Click to show internal directories.
Click to hide internal directories.