TypeScript Angular client
The Angular client is available at https://github.com/lab5e/ng-spanapi.
Usage
Installation
Install via ng
as usual:
ng add @lab5e/ng-spanapi
Example fetching collection data
constructor(private collectionService: CollectionService) { }
// ....
listCollections(): void {
// This should be done in the environment set-up
this.collectionService.configuration.credentials['APIToken'] = 'your-api-token-goes-here';
this.collectionService.list().subscribe({
next: (r : ListCollectionResponse) => {},
error: (e) => {},
complete: () => {},
});
}