@ken-all/kenall
    Preparing search index...

    Class KENALL

    Index

    Constructors

    • The constructor.

      Parameters

      • apikey: string

        The key string that you want to call the API with. The key is shown in the dashboard you will be navigated to right after signing in to the service.

      • config: Config = {}

        Specifies the configuration given by Config.

      Returns KENALL

    Properties

    apibase: string
    apikey: string

    The key string that you want to call the API with. The key is shown in the dashboard you will be navigated to right after signing in to the service.

    timeout: number

    Methods

    • Invokes "getAddress" API (endpoint: /postalcode/{postalcode}).

      Type Parameters

      Parameters

      • postalCode: string

        The postal code to query with.

      • Optionalversion: string

        The version of the database that the query has to be performed against. Will default to the latest available version if not specified.

      • OptionalapiVersion: T

        The API version. The return type is determined based on this argument, and thus it cannot be a variable.

      Returns Promise<AddressResolverResponseForVersion<T>>

      An AddressResolverResponse.

    • Invokes "getCities" API (endpoint: /cities/{prefectureCode}).

      Type Parameters

      Parameters

      • prefectureCode: string

        The prefecture code to query with.

      • Optionalversion: string

        The version of the database that the query has to be performed against. Will default to the latest available version if not specified.

      • OptionalapiVersion: T

        The API version. The return type is determined based on this argument, and thus it cannot be a variable.

      Returns Promise<CityResolverResponseForVersion<T>>

      A CityResolverResponse.

    • Parameters

      • endpoint: string
      • params: {} = {}
      • OptionalapiVersion: string

      Returns Promise<unknown>