This library implements a client to use Documents APIs
Add the service to your module imports:
import {
DocumentsClientModule,
} from '@island.is/clients/documents'
@Module({
imports: [
DocumentsClientModule.register({
basePath: BASE_PATH,
clientId: CLIENT_ID,
clientSecret: CLIENT_SECRET,
tokenUrl: TOKEN_URL,
}),
],
})
Then you'll have access to DocumentClient APIs:
import { DocumentClient } from '@island.is/clients/documents'
@Injectable()
export class SomeService {
constructor(
@Inject(DocumentClient)
private readonly documentClient: DocumentClient,
) {}
// ....
}
}