Scripts
    Preparing search index...

    Class RestClient

    Index

    Methods

    • Creates new instance of BinaryBody.

      Parameters

      • data: string

        Base64 encoded binary data.

      • filename: string

        Filename of the binary data.

      Returns BinaryBody

      New instance of BinaryBody.

    • Creates new instance of JsonBody.

      Parameters

      • data: any

        JSON data.

      Returns JsonBody

      New instance of JsonBody.

    • Creates new instance of PlainTextBody.

      Parameters

      • data: string

        Plain text data.

      Returns PlainTextBody

      New instance of PlainTextBody.

    • Creates new instance of XmlBody.

      Parameters

      • data: string

        XML data.

      Returns XmlBody

      New instance of XmlBody.

    • Makes GET request to specified url.

      Parameters

      • url: string

        Url of the request.

      • Optionalparameters: any

        Query parameters of the request.

      • Optionalheaders: any

        Headers of the request.

      Returns RestResponse

      Response object of the request.

    • Makes GET request to specified url.

      Parameters

      • url: string

        Url of the request.

      • Optionalparameters: any

        Query parameters of the request.

      • Optionalheaders: any

        Headers of the request.

      Returns RestResponse

      Response object of the request.

    • Makes GET request to specified url.

      Parameters

      • url: string

        Url of the request.

      • Optionalparameters: any

        Query parameters of the request.

      • Optionalheaders: any

        Headers of the request.

      Returns RestResponse

      Response object of the request.

    • Makes GET request to specified url.

      Parameters

      • url: string

        Url of the request.

      • Optionalparameters: any

        Query parameters of the request.

      • Optionalheaders: any

        Headers of the request.

      Returns RestResponse

      Response object of the request.

    • Makes GET request to specified url.

      Parameters

      • url: string

        Url of the request.

      • Optionalparameters: any

        Query parameters of the request.

      • Optionalheaders: any

        Headers of the request.

      • Optionalbody: IBody

        Body of the request.

      Returns RestResponse

      Response object of the request.

    Staticpost

    • post(url: string, parameters?: any, headers?: any, body?: IBody): RestResponse

      Makes GET request to specified url.

      Parameters

      • url: string

        Url of the request.

      • Optionalparameters: any

        Query parameters of the request.

      • Optionalheaders: any

        Headers of the request.

      • Optionalbody: IBody

        Body of the request.

      Returns RestResponse

      Response object of the request.

    • Makes GET request to specified url.

      Parameters

      • url: string

        Url of the request.

      • Optionalparameters: any

        Query parameters of the request.

      • Optionalheaders: any

        Headers of the request.

      • Optionalbody: IBody

        Body of the request.

      Returns RestResponse

      Response object of the request.