Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SASjsApiClient

Index

Constructors

Methods

  • deploy(dataJson: ServicePackSASjs, appLoc: string, authConfig?: AuthConfig): Promise<{ example?: {}; message: string; status: string; streamServiceName?: string }>
  • Parameters

    • dataJson: ServicePackSASjs
    • appLoc: string
    • Optional authConfig: AuthConfig

    Returns Promise<{ example?: {}; message: string; status: string; streamServiceName?: string }>

  • executeJob(query: ExecutionQuery, authConfig?: AuthConfig): Promise<{ _webout?: string; error?: {}; log?: string; logPath?: string; message: string; status: string }>
  • Parameters

    Returns Promise<{ _webout?: string; error?: {}; log?: string; logPath?: string; message: string; status: string }>

  • executeScript(code: string, runTime?: string, authConfig?: AuthConfig): Promise<string>
  • Executes code on a SASJS server.

    Parameters

    • code: string

      a string of code to execute.

    • runTime: string = 'sas'

      a string to representing runTime for code execution

    • Optional authConfig: AuthConfig

      an object for authentication.

    Returns Promise<string>

  • Exchanges the auth code for an access token for the given client.

    Parameters

    • clientId: string

      the client ID to authenticate with.

    • authCode: string

      the auth code received from the server.

    Returns Promise<SASjsAuthResponse>

  • Exchanges the refresh token for an access token.

    Parameters

    • refreshToken: string

      the refresh token received from the server.

    Returns Promise<SASjsAuthResponse>

Generated using TypeDoc