sendpulse

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

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

Go to latest
Published: Jul 8, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const SENDPULSE_URI = `https://api.sendpulse.com`

Variables

This section is empty.

Functions

This section is empty.

Types

type SendPulse

type SendPulse struct {
	Debug bool
	// contains filtered or unexported fields
}

func NewSendPulse

func NewSendPulse(client_id, client_secret string) (*SendPulse, error)

func (*SendPulse) IsTokenUpdateRequired

func (self *SendPulse) IsTokenUpdateRequired() bool

func (*SendPulse) SendRequest

func (self *SendPulse) SendRequest(
	path, method string,
	params *url.Values,
	use_token bool,
	force_token_renew bool,
) (*http.Response, error)

func (*SendPulse) SmtpEmailsPost

func (self *SendPulse) SmtpEmailsPost(email *types.SendPulseSendEmailStruct) (*http.Response, error)

func (*SendPulse) Token

func (self *SendPulse) Token() *types.TokenResponse

func (*SendPulse) UpdateToken

func (self *SendPulse) UpdateToken(force_renew bool) error

Directories

Path Synopsis
tests
01

Jump to

Keyboard shortcuts

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