smsaw

package module
v0.0.0-...-2cf86ba Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2021 License: MIT Imports: 5 Imported by: 0

README

WIP

This is a major Work In Progress.
This wrapper lacks features and is not fully tested.
DON'T USE IT IN PRODUCTION!

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	Endpoint string `json:"endpoint"`
	ApiKey   string `json:"api_key"`
	Referral string `json:"referral"`
}

func (Session) CancelActivation

func (s Session) CancelActivation(activationID int) error

func (Session) CompleteActivation

func (s Session) CompleteActivation(activationID int) error

func (Session) GetBalance

func (s Session) GetBalance() (float64, error)

func (Session) GetNumber

func (s Session) GetNumber(serviceCode string, countryCode int) (int, int, error)

func (Session) GetStatus

func (s Session) GetStatus(activationID int) (string, int, error)

func (Session) RequestAnotherCode

func (s Session) RequestAnotherCode(activationID int) error

func (Session) SetStatus

func (s Session) SetStatus(activationID, statusCode int) error

func (Session) StartListeningForSMS

func (s Session) StartListeningForSMS(activationID int) error

Jump to

Keyboard shortcuts

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