Documentation ¶
Overview ¶
Package saf provides tools and utilities for Safaricom services. The package can be used as a library for custom applications or individual saf projects applications can be run.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bundles ¶
type Bundles struct { AccType string Bundles string BundlesExpiry string Airtime float64 BongaSMS string BongaBalance string }
Bundles defines the structure for bundles values returned
func GetBundles ¶
GetBundles returns the bundles for the line in use
func ParseBundles ¶
ParseBundles parses raw bundles html to Bundles value. Raw bundles html are as received from the Saf GetSubDetails http endpoint. Especially useful in processing data sent from clients (e.g. xhr)
Click to show internal directories.
Click to hide internal directories.