zboxapi

package
v1.13.14 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrZboxApiNotInitialized = errors.New("zboxapi: zboxapi client is not initialized")
	ErrZboxApiInvalidWallet  = errors.New("zboxapi: invalid wallet")
)

Functions

func CreateJwtSession

func CreateJwtSession(phoneNumber string) (int64, error)

CreateJwtSession create a jwt session

func CreateJwtToken

func CreateJwtToken(phoneNumber string, jwtSessionID int64, otp string) (string, error)

CreateJwtToken create a fresh jwt token

func GetCsrfToken

func GetCsrfToken() (string, error)

GetCsrfToken create a fresh CSRF token

func Init

func Init(baseUrl, appType string)

func RefreshJwtToken

func RefreshJwtToken(phoneNumber string, token string) (string, error)

RefreshJwtToken refresh jwt token

func SetWallet

func SetWallet(clientID, clientPrivateKey, clientPublicKey string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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