websdk

package module
v0.0.0-...-b5b393b Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseUrls

type BaseUrls struct {
	API2           string
	LivenessServer string
}

type Claims

type Claims struct {
	UserId string `json:"userId"`
	jwt.StandardClaims
}

type GenerateLCORequestReturn

type GenerateLCORequestReturn struct {
	Success      bool   `json:"success"`
	Message      string `json:"message"`
	LCOId        string `json:"lcoId"`
	ResponseCode string `json:"responseCode"`
}

type LivenessServerClient

type LivenessServerClient struct {
	APIKey   string
	APIToken string
	BaseUrl  string
}

func (LivenessServerClient) GenerateLCORequest

func (livenessServerClient LivenessServerClient) GenerateLCORequest(userId, contentLanguage string) ([]byte, error)

func (LivenessServerClient) VideoProcessingRequest

func (livenessServerClient LivenessServerClient) VideoProcessingRequest(userId, lcoId, biometricType, filename string, fileData []byte, phrase ...string) ([]byte, error)

type WebSDK

type WebSDK struct {
	// contains filtered or unexported fields
}

func (WebSDK) GenerateTokenForUser

func (websdk WebSDK) GenerateTokenForUser(userId string) (string, error)

func (WebSDK) GetAPI2Client

func (websdk WebSDK) GetAPI2Client() voiceit2.VoiceIt2

func (WebSDK) GetLivenessServerClient

func (websdk WebSDK) GetLivenessServerClient() LivenessServerClient

func (WebSDK) GetSessionExpirationTimeHours

func (websdk WebSDK) GetSessionExpirationTimeHours() int

func (*WebSDK) Initialize

func (websdk *WebSDK) Initialize(apiKey, apiToken string, sessionExpirationTimeHours int, baseUrls ...BaseUrls)

func (WebSDK) MakeCall

func (websdk WebSDK) MakeCall(r *http.Request) (map[string]interface{}, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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