api

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasPlan

func HasPlan(userPlan string, required PlanLevel) bool

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New() (*Client, error)

func (*Client) GetAPIKey

func (c *Client) GetAPIKey() string

func (*Client) GetInsights added in v0.1.13

func (c *Client) GetInsights(inbox string) ([]interface{}, error)

func (*Client) GetMe

func (c *Client) GetMe() (map[string]interface{}, error)

func (*Client) GetMessage

func (c *Client) GetMessage(inbox, id string) (map[string]interface{}, error)

func (*Client) GetOTP

func (c *Client) GetOTP(inbox string) (map[string]interface{}, error)

func (*Client) GetTimeline added in v0.1.13

func (c *Client) GetTimeline(inbox string) ([]interface{}, error)

func (*Client) GetUsage

func (c *Client) GetUsage() (map[string]interface{}, error)

func (*Client) ListDomains

func (c *Client) ListDomains() ([]interface{}, error)

func (*Client) ListInboxes

func (c *Client) ListInboxes() ([]interface{}, error)

func (*Client) ListMessages

func (c *Client) ListMessages(inbox string) ([]interface{}, error)

func (*Client) RegisterInbox

func (c *Client) RegisterInbox(inbox string) (map[string]interface{}, error)

func (*Client) UnregisterInbox

func (c *Client) UnregisterInbox(inbox string) (map[string]interface{}, error)

type PlanLevel

type PlanLevel int
const (
	PlanFree       PlanLevel = 0
	PlanDeveloper  PlanLevel = 1
	PlanStartup    PlanLevel = 2
	PlanGrowth     PlanLevel = 3
	PlanEnterprise PlanLevel = 4
)

func PlanLevelFor

func PlanLevelFor(plan string) PlanLevel

Jump to

Keyboard shortcuts

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