Class ApiClient

Represents a basic contract for API request execution

export
interface

ApiClient

Hierarchy

  • ApiClient

Implemented by

Index

Constructors

Properties

Methods

Constructors

Protected constructor

Properties

Protected apiConfiguration

apiConfiguration: ApiConfiguration

ApiConfiguration instance to provide dependencies for this service client

Methods

invoke

  • Dispatches a request to an API endpoint described in the request. An ApiClient is expected to resolve the Promise in the case an API returns a non-200 HTTP status code. The responsibility of translating a particular response code to an error lies with the caller to invoke.

    memberof

    ApiClient

    Parameters

    Returns Promise<ApiClientResponse>

    Response from the ApiClient

Brought to you with ❤ by the Alexa Games team at Amazon. © 2019, Amazon.com, Inc. or its affiliates. All Rights Reserved.