Constructors
constructor
- new SASjsApiClient(serverUrl: string, requestClient: RequestClient): SASjsApiClient
Parameters
serverUrl: string
requestClient: RequestClient
Methods
deploy
- deploy(members: FileTree, appLoc: string, authConfig?: AuthConfig): Promise<{ example?: {}; message: string; status: string }>
Parameters
appLoc: string
Optional authConfig: AuthConfig
Returns Promise<{ example?: {}; message: string; status: string }>
executeJob
- executeJob(query: ExecutionQuery): 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 }>
getAccessToken
Parameters
clientId: string
authCode: string
getAuthCode
- getAuthCode(username: string, password: string, clientId: string): Promise<string>
Parameters
username: string
password: string
clientId: string
Returns Promise<string>
setConfig
- setConfig(serverUrl: string): void
Exchanges the auth code for an access token for the given client.