datausage

package
v0.0.0-...-cb11928 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package datausage has utilities for retrieving data usage from a SIM card.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUsage

func GetUsage(ctx context.Context, client *twilio.Client, sim string, start, end time.Time, interval time.Duration) ([]types.Bits, error)

GetUsage gets usage for the given sim, starting at start and ending at end. The return value is a list of usage information. The first item in the list is the interval starting at start and so on until end is reached.

sim may be either a Sim SID or a UniqueName.

Types

This section is empty.

Jump to

Keyboard shortcuts

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