docscan

package
v3.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// SDK ID. This can be found in the Yoti Hub after you have created and activated an application.
	SdkID string
	// Private Key associated for your application, can be downloaded from the Yoti Hub.
	Key *rsa.PrivateKey
	// Mockable HTTP Client Interface
	HTTPClient requests.HttpClient
	// contains filtered or unexported fields
}

Client is responsible for setting up test data in the sandbox instance.

func NewClient

func NewClient(sdkID string, key []byte) (*Client, error)

NewClient constructs a Client object

func (*Client) CreateSession

func (c *Client) CreateSession(sessionSpec *create.SessionSpecification) (*create.SessionResult, error)

CreateSession creates a Doc Scan (IDV) session using the supplied session specification

func (*Client) DeleteMediaContent

func (c *Client) DeleteMediaContent(sessionID, mediaID string) error

DeleteMediaContent deletes media related to a Yoti Doc Scan (IDV) session based on the supplied media ID

func (*Client) DeleteSession

func (c *Client) DeleteSession(sessionID string) error

DeleteSession deletes a previously created Yoti Doc Scan (IDV) session and all of its related resources

func (*Client) GetMediaContent

func (c *Client) GetMediaContent(sessionID, mediaID string) (media.Media, error)

GetMediaContent retrieves media related to a Yoti Doc Scan (IDV) session based on the supplied media ID

func (*Client) GetSession

func (c *Client) GetSession(sessionID string) (*retrieve.GetSessionResult, error)

GetSession retrieves the state of a previously created Yoti Doc Scan (IDV) session

func (*Client) GetSupportedDocuments

func (c *Client) GetSupportedDocuments() (*supported.DocumentsResponse, error)

GetSupportedDocuments gets a slice of supported documents (defaults includeNonLatin to false)

func (*Client) GetSupportedDocumentsWithNonLatin added in v3.9.0

func (c *Client) GetSupportedDocumentsWithNonLatin(includeNonLatin bool) (*supported.DocumentsResponse, error)

GetSupportedDocuments gets a slice of supported documents with bool param includeNonLatin

func (*Client) OverrideAPIURL

func (c *Client) OverrideAPIURL(apiURL string)

OverrideAPIURL overrides the default API URL for this Yoti Client

Jump to

Keyboard shortcuts

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