Skip to content

AtloriaAPIClient

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/packages/api-client/src/AtloriaAPIClient.ts

Main Atloria API client Provides a unified interface for all API operations

Methods

MethodSignatureReturns
getInterceptorsgetInterceptors()InterceptorManager
setTokensetToken(token: string)void
getTokengetToken()string
initWebSocketinitWebSocket(url: string, config: WebSocketConfig)WebSocketClient
getWebSocketgetWebSocket()`WebSocketClient
disconnectWebSocketdisconnectWebSocket()void
loginlogin(email: string, password: string)Promise<void>
logoutlogout()Promise<void>
refreshTokenrefreshToken()Promise<void>

Properties

PropertyType
audiencesAudienceEndpoints
auditAuditEndpoints
authAuthEndpoints
changeRequestsChangeRequestEndpoints
commentsCommentEndpoints
docsConfigDocsConfigEndpoints
documentsDocumentEndpoints
projectsProjectEndpoints
suggestionsSuggestionEndpoints
usersUserEndpoints

Where it refuses work

  • AtloriaAPIClient stops the work with Error when !token — “Authentication token required for WebSocket connection”.

Was this page helpful?

Download as PDF