2023-06-10 16:52:27 +02:00
|
|
|
[bandcamp-fetch](../README.md) / LimiterAlbumAPI
|
|
|
|
|
|
|
|
# Class: LimiterAlbumAPI
|
|
|
|
|
|
|
|
## Hierarchy
|
|
|
|
|
|
|
|
- [`AlbumAPI`](AlbumAPI.md)
|
|
|
|
|
|
|
|
↳ **`LimiterAlbumAPI`**
|
|
|
|
|
|
|
|
## Table of contents
|
|
|
|
|
|
|
|
### Constructors
|
|
|
|
|
|
|
|
- [constructor](LimiterAlbumAPI.md#constructor)
|
|
|
|
|
2023-10-28 14:55:26 +02:00
|
|
|
### Accessors
|
|
|
|
|
|
|
|
- [cache](LimiterAlbumAPI.md#cache)
|
|
|
|
- [imageAPI](LimiterAlbumAPI.md#imageapi)
|
|
|
|
|
2023-06-10 16:52:27 +02:00
|
|
|
### Methods
|
|
|
|
|
2023-10-28 14:55:26 +02:00
|
|
|
- [fetch](LimiterAlbumAPI.md#fetch)
|
2023-06-10 16:52:27 +02:00
|
|
|
- [getInfo](LimiterAlbumAPI.md#getinfo)
|
|
|
|
|
|
|
|
## Constructors
|
|
|
|
|
|
|
|
### constructor
|
|
|
|
|
2023-10-28 14:55:26 +02:00
|
|
|
• **new LimiterAlbumAPI**(`params`)
|
2023-06-10 16:52:27 +02:00
|
|
|
|
2023-10-28 14:55:26 +02:00
|
|
|
#### Parameters
|
|
|
|
|
|
|
|
| Name | Type |
|
|
|
|
| :------ | :------ |
|
|
|
|
| `params` | [`BaseAPIWithImageSupportParams`](../interfaces/BaseAPIWithImageSupportParams.md) & { `limiter`: [`Limiter`](Limiter.md) } |
|
|
|
|
|
|
|
|
#### Overrides
|
2023-06-10 16:52:27 +02:00
|
|
|
|
|
|
|
[AlbumAPI](AlbumAPI.md).[constructor](AlbumAPI.md#constructor)
|
|
|
|
|
2023-10-28 14:55:26 +02:00
|
|
|
#### Defined in
|
|
|
|
|
2023-10-28 20:34:52 +02:00
|
|
|
[lib/album/AlbumAPI.ts:33](https://github.com/patrickkfkan/bandcamp-fetch/blob/7815c68/src/lib/album/AlbumAPI.ts#L33)
|
2023-10-28 14:55:26 +02:00
|
|
|
|
|
|
|
## Accessors
|
|
|
|
|
|
|
|
### cache
|
|
|
|
|
|
|
|
• `Protected` `get` **cache**(): [`Cache`](Cache.md)
|
|
|
|
|
|
|
|
#### Returns
|
|
|
|
|
|
|
|
[`Cache`](Cache.md)
|
|
|
|
|
|
|
|
#### Inherited from
|
|
|
|
|
|
|
|
AlbumAPI.cache
|
|
|
|
|
|
|
|
#### Defined in
|
|
|
|
|
2023-10-28 20:34:52 +02:00
|
|
|
[lib/common/BaseAPI.ts:25](https://github.com/patrickkfkan/bandcamp-fetch/blob/7815c68/src/lib/common/BaseAPI.ts#L25)
|
2023-10-28 14:55:26 +02:00
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
### imageAPI
|
|
|
|
|
|
|
|
• `get` **imageAPI**(): [`ImageAPI`](ImageAPI.md)
|
|
|
|
|
|
|
|
#### Returns
|
|
|
|
|
|
|
|
[`ImageAPI`](ImageAPI.md)
|
|
|
|
|
|
|
|
#### Inherited from
|
|
|
|
|
|
|
|
AlbumAPI.imageAPI
|
|
|
|
|
|
|
|
#### Defined in
|
|
|
|
|
2023-10-28 20:34:52 +02:00
|
|
|
[lib/common/BaseAPIWithImageSupport.ts:17](https://github.com/patrickkfkan/bandcamp-fetch/blob/7815c68/src/lib/common/BaseAPIWithImageSupport.ts#L17)
|
2023-10-28 14:55:26 +02:00
|
|
|
|
2023-06-10 16:52:27 +02:00
|
|
|
## Methods
|
|
|
|
|
2023-10-28 14:55:26 +02:00
|
|
|
### fetch
|
|
|
|
|
|
|
|
▸ `Protected` **fetch**(`url`, `jsonResponse`, `method?`, `payload?`): `Promise`<`any`\>
|
|
|
|
|
|
|
|
#### Parameters
|
|
|
|
|
|
|
|
| Name | Type |
|
|
|
|
| :------ | :------ |
|
|
|
|
| `url` | `string` |
|
|
|
|
| `jsonResponse` | ``true`` |
|
|
|
|
| `method?` | [`FetchMethod`](../enums/FetchMethod.md) |
|
|
|
|
| `payload?` | `Record`<`string`, `any`\> |
|
|
|
|
|
|
|
|
#### Returns
|
|
|
|
|
|
|
|
`Promise`<`any`\>
|
|
|
|
|
|
|
|
#### Inherited from
|
|
|
|
|
|
|
|
[AlbumAPI](AlbumAPI.md).[fetch](AlbumAPI.md#fetch)
|
|
|
|
|
|
|
|
#### Defined in
|
|
|
|
|
2023-10-28 20:34:52 +02:00
|
|
|
[lib/common/BaseAPI.ts:19](https://github.com/patrickkfkan/bandcamp-fetch/blob/7815c68/src/lib/common/BaseAPI.ts#L19)
|
2023-10-28 14:55:26 +02:00
|
|
|
|
|
|
|
▸ `Protected` **fetch**(`url`, `jsonResponse?`, `method?`, `payload?`): `Promise`<`string`\>
|
|
|
|
|
|
|
|
#### Parameters
|
|
|
|
|
|
|
|
| Name | Type |
|
|
|
|
| :------ | :------ |
|
|
|
|
| `url` | `string` |
|
|
|
|
| `jsonResponse?` | `boolean` |
|
|
|
|
| `method?` | [`FetchMethod`](../enums/FetchMethod.md) |
|
|
|
|
| `payload?` | `Record`<`string`, `any`\> |
|
|
|
|
|
|
|
|
#### Returns
|
|
|
|
|
|
|
|
`Promise`<`string`\>
|
|
|
|
|
|
|
|
#### Inherited from
|
|
|
|
|
|
|
|
[AlbumAPI](AlbumAPI.md).[fetch](AlbumAPI.md#fetch)
|
|
|
|
|
|
|
|
#### Defined in
|
|
|
|
|
2023-10-28 20:34:52 +02:00
|
|
|
[lib/common/BaseAPI.ts:20](https://github.com/patrickkfkan/bandcamp-fetch/blob/7815c68/src/lib/common/BaseAPI.ts#L20)
|
2023-10-28 14:55:26 +02:00
|
|
|
|
|
|
|
___
|
|
|
|
|
2023-06-10 16:52:27 +02:00
|
|
|
### getInfo
|
|
|
|
|
2023-10-28 14:55:26 +02:00
|
|
|
▸ **getInfo**(`params`): `Promise`<[`Album`](../interfaces/Album.md)\>
|
2023-06-10 16:52:27 +02:00
|
|
|
|
|
|
|
#### Parameters
|
|
|
|
|
|
|
|
| Name | Type |
|
|
|
|
| :------ | :------ |
|
|
|
|
| `params` | [`AlbumAPIGetInfoParams`](../interfaces/AlbumAPIGetInfoParams.md) |
|
|
|
|
|
|
|
|
#### Returns
|
|
|
|
|
|
|
|
`Promise`<[`Album`](../interfaces/Album.md)\>
|
|
|
|
|
|
|
|
#### Overrides
|
|
|
|
|
|
|
|
[AlbumAPI](AlbumAPI.md).[getInfo](AlbumAPI.md#getinfo)
|
|
|
|
|
|
|
|
#### Defined in
|
|
|
|
|
2023-10-28 20:34:52 +02:00
|
|
|
[lib/album/AlbumAPI.ts:38](https://github.com/patrickkfkan/bandcamp-fetch/blob/7815c68/src/lib/album/AlbumAPI.ts#L38)
|