# Class SAS9ApiClient

A client for interfacing with the SAS9 REST API.

### Hierarchy

- SAS9ApiClient

### Constructors

- constructor

### Methods

- executeScript
- getConfig
- setConfig

## Constructors

### constructor

- new SAS9ApiClient(serverUrl: string): SAS9ApiClient

- - Defined in SAS9ApiClient.ts:7

  #### Parameters

  - ##### serverUrl: string

  #### Returns SAS9ApiClient

## Methods

### executeScript

- executeScript(linesOfCode: string[], serverName: string, repositoryName: string): Promise<string>

- - Defined in SAS9ApiClient.ts:35

  Executes code on a SAS9 server.

  #### Parameters

  - ##### linesOfCode: string[]

    an array of code lines to execute.

  - ##### serverName: string

    the server to execute the code on.

  - ##### repositoryName: string

    the repository to execute the code in.

  #### Returns Promise<string>

### getConfig

- getConfig(): object

- - Defined in SAS9ApiClient.ts:15

  Returns an object containing server URL.

  #### Returns object

  - ##### serverUrl: string

### setConfig

- setConfig(serverUrl: string): void

- - Defined in SAS9ApiClient.ts:25

  Updates server URL which is not null.

  #### Parameters

  - ##### serverUrl: string

    URL of the server to be set.

  #### Returns void

Generated using TypeDoc