emailmmssms

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct{}

API emailsms

func (API) Lookup added in v1.2.0

func (API) Lookup(c *gin.Context)

Lookup /api/email-mms-sms/lookup @Summary Phone number lookup @Description Phone number lookup @Tags MMS-SMS @Accept json @Produce json,xml @Param "" body LookupRequest true "Request JSON" @Success 200 {object} data.APIResponse @Failure 400 {object} data.APIResponse @Failure 500 {object} data.APIResponse @Failure 503 {object} data.APIResponse @Router /api/email-mms-sms/lookup [post]

func (API) Send

func (API) Send(c *gin.Context)

Send /api/email-mms-sms/send @Summary Send email to phone number @Description Send free MMS/SMS to phone number online. @Tags MMS-SMS @Accept json @Produce json,xml @Param "" body Request true "Request JSON" @Success 200 {object} data.APIResponse @Failure 400 {object} data.APIResponse @Failure 429 {object} data.APIResponse @Failure 503 {object} data.APIResponse @Router /api/email-mms-sms/send [post]

type LookupRequest added in v1.2.0

type LookupRequest struct {
	Number string `json:"phone_number" xml:"phone_number" form:"phone_number" binding:"required"`
}

LookupRequest for /api/email-mms-sms/lookup

type LookupResponse added in v1.2.0

type LookupResponse struct {
	CountryCode    int64   `json:"country_code" xml:"country_code"`
	CountryCodeISO string  `json:"country_code_iso" xml:"country_code_iso"`
	Location       string  `json:"location" xml:"location"`
	Latitude       float64 `json:"location_latitude" xml:"location_latitude"`
	Longitude      float64 `json:"location_longitude" xml:"location_longitude"`
	NationalNumber int64   `json:"national_number" xml:"national_number"`
	Type           string  `json:"number_type" xml:"number_type"`
	IsValid        bool    `json:"is_valid_number" xml:"is_valid_number"`
	Carrier        string  `json:"carrier" xml:"carrier"`
	E164Formatted  string  `json:"phone_number_e164" xml:"phone_number_e164"`
}

LookupResponse for /api/email-mms-sms/lookup

type Request

type Request struct {
	ToNumber string `json:"toNumber" xml:"toNumber" form:"toNumber" binding:"required"`
	Carrier  string `json:"carrier" xml:"carrier" form:"carrier" binding:"required"`
	Subject  string `json:"subject" xml:"subject" form:"subject"`
	Content  string `json:"content" xml:"content" form:"content"`
}

Request for /api/email-mms-sms/send

Jump to

Keyboard shortcuts

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