Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BurstService

Generic BRS Web Service class.

Hierarchy

  • BurstService

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

settings

Methods

query

  • query<T>(method: string, args?: any, options?: any | AxiosRequestConfig): Promise<T>
  • Requests a query to BRS

    throws

    HttpError in case of failure

    Type parameters

    • T

    Parameters

    • method: string

      The BRS method according https://burstwiki.org/wiki/The_Burst_API

    • Default value args: any = {}

      A JSON object which will be mapped to url params

    • Optional options: any | AxiosRequestConfig

      The optional request configuration for the passed Http client

    Returns Promise<T>

    The response data of success

send

  • send<T>(method: string, args?: any, body?: any, options?: any | AxiosRequestConfig): Promise<T>
  • Send data to BRS

    throws

    HttpError in case of failure

    Type parameters

    • T

    Parameters

    • method: string

      The BRS method according https://burstwiki.org/wiki/The_Burst_API. Note that there are only a few POST methods

    • Default value args: any = {}

      A JSON object which will be mapped to url params

    • Default value body: any = {}

      An object with key value pairs to submit as post body

    • Optional options: any | AxiosRequestConfig

      The optional request configuration for the passed Http client

    Returns Promise<T>

    The response data of success

toBRSEndpoint

  • toBRSEndpoint(method: string, data?: any): string

Generated using TypeDoc