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

  • "getAddress" API (エンドポイント: /postalcode/{postalcode}) を呼び出します。

    Type Parameters

    Parameters

    • postalCode: string

      "getAddress" API (エンドポイント: /postalcode/{postalcode}) を呼び出します。

    • Optionalversion: string

      "getAddress" API (エンドポイント: /postalcode/{postalcode}) を呼び出します。

    • OptionalapiVersion: T

      "getAddress" API (エンドポイント: /postalcode/{postalcode}) を呼び出します。

    Returns Promise<AddressResolverResponseForVersion<T>>

    An AddressResolverResponse.

  • "getCities" API (エンドポイント: /cities/{prefectureCode}) を呼び出します。

    Type Parameters

    Parameters

    • prefectureCode: string

      "getCities" API (エンドポイント: /cities/{prefectureCode}) を呼び出します。

    • Optionalversion: string

      "getCities" API (エンドポイント: /cities/{prefectureCode}) を呼び出します。

    • OptionalapiVersion: T

      "getCities" API (エンドポイント: /cities/{prefectureCode}) を呼び出します。

    Returns Promise<CityResolverResponseForVersion<T>>

    A CityResolverResponse.

  • Parameters

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

    Returns Promise<unknown>