Ejemplo n.º 1
0
func (m *mailgunImpl) DeleteTag(tag string) error {
	r := simplehttp.NewDeleteRequest(generateApiUrl(m, deleteTagEndpoint) + "/" + tag)
	r.SetBasicAuth(basicAuthUser, m.ApiKey())
	_, err := r.MakeRequest()
	return err
}
Ejemplo n.º 2
0
func (m *mailgunImpl) DeleteCampaign(id string) error {
	r := simplehttp.NewDeleteRequest(generateApiUrl(m, campaignsEndpoint) + "/" + id)
	r.SetBasicAuth(basicAuthUser, m.ApiKey())
	_, err := r.MakeRequest()
	return err
}
Ejemplo n.º 3
0
func (m *mailgunImpl) DeleteBounce(address string) error {
	r := simplehttp.NewDeleteRequest(generateApiUrl(m, bouncesEndpoint) + "/" + address)
	r.SetBasicAuth(basicAuthUser, m.ApiKey())
	_, err := r.MakeRequest()
	return err
}