lookup

package
v0.0.0-...-421306c Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHLR

func CreateHLR(c messagebird.Client, phoneNumber string, params *Params) (*hlr.HLR, error)

CreateHLR creates a new HLR lookup for the specified number.

func ReadHLR

func ReadHLR(c messagebird.Client, phoneNumber string, params *Params) (*hlr.HLR, error)

ReadHLR performs a HLR lookup for the specified number.

Types

type Formats

type Formats struct {
	E164          string
	International string
	National      string
	Rfc3966       string
}

Formats represents phone number in multiple formats.

type Lookup

type Lookup struct {
	Href          string
	CountryCode   string
	CountryPrefix int
	PhoneNumber   int64
	Type          string
	Formats       Formats
	HLR           *hlr.HLR
}

Lookup is used to validate and look up a mobile number.

func Read

func Read(c messagebird.Client, phoneNumber string, params *Params) (*Lookup, error)

Read performs a new lookup for the specified number.

type Params

type Params struct {
	CountryCode string
	Reference   string
}

Params provide additional lookup information.

func (*Params) QueryParams

func (p *Params) QueryParams() string

Jump to

Keyboard shortcuts

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