The RestAPI class is the main class which is used to communicate with Veeva.

It will manage authentication, as well as parse responses from the Veeva API.

Hierarchy

  • RestAPI

Constructors

Properties

host: string
password: string
sessionID: string
username: string

Methods

  • Parameters

    • form: FormData
    • property: string
    • data: any

    Returns FormData

  • Parameters

    • data: any

    Returns FormData

  • Parameters

    • options: OptionsOfJSONResponseBody
    • method: Method
    • contentType: string
    • data: any

    Returns OptionsOfJSONResponseBody

  • Type Parameters

    • T

    Parameters

    • method: Method
    • endpoint: string
    • Optional data: any
    • contentType: string = 'application/x-www-form-urlencoded'

    Returns Promise<T>

  • Type Parameters

    • T

    Parameters

    • options: OptionsOfJSONResponseBody

    Returns Promise<T>

Generated using TypeDoc