@ces-sdk/client-endorsements
v0.7.6
Published
SDK to make API calls to the CES Student Endorsement API
Downloads
99
Keywords
Readme
Endorsements Client
Node SDK client for the Student CES Ecclesiastical Endorsement system's API. This client simplifies making API calls, and it defines the types configured in the API spec.
Usage
import { BrowserLocalStorageProvider } from '@ces-sdk/core'
import { EndorsementClient, RequestStatusEnum, RequestTypeEnum } from '@ces-sdk/client-endorsements'
const client = new EndorsementClient({
baseUrl: process.env.NUXT_ENV_CESAPI_URL,
credentialProvider: new BrowserLocalStorageProvider('auth._token.hydra')
})
const endorsements = await client.searchEndorsements({
type: RequestTypeEnum.APPLICANT,
requestStatuses: RequestStatusEnum.PENDING
})