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.
Click to show internal directories.
Click to hide internal directories.