Home Reference Source Test
import HttpClient from '@token-io/tpp/src/http/HttpClient.js'
public class | source

HttpClient

Extends:

@token-io/core~CoreHttpClient → HttpClient

Client for making unauthenticated requests to the Token gateway.

Constructor Summary

Public Constructor
public

constructor(options: *)

Method Summary

Public Methods
public

async getTokenRequestResult(tokenRequestId: string): Object

Get the token request result based on its token request ID.

public

async retrieveTokenRequest(requestId: string): Promise

Retrieves a request for a token.

Public Constructors

public constructor(options: *) source

Params:

NameTypeAttributeDescription
options *

Public Methods

public async getTokenRequestResult(tokenRequestId: string): Object source

Get the token request result based on its token request ID.

Params:

NameTypeAttributeDescription
tokenRequestId string

token request ID

Return:

Object

response to the API call

public async retrieveTokenRequest(requestId: string): Promise source

Retrieves a request for a token. Called by the web(user) or by a TPP, to get request details.

Params:

NameTypeAttributeDescription
requestId string

token request ID

Return:

Promise

response to the API call