2023-06-24 04:13:03 +00:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
2023-07-02 22:18:30 +00:00
|
|
|
[Home](./index.md) > [firefish-js](./firefish-js.md) > [api](./firefish-js.api.md) > [APIClient](./firefish-js.api.apiclient.md) > [(constructor)](./firefish-js.api.apiclient._constructor_.md)
|
2023-06-24 04:13:03 +00:00
|
|
|
|
|
|
|
## api.APIClient.(constructor)
|
|
|
|
|
|
|
|
Constructs a new instance of the `APIClient` class
|
|
|
|
|
|
|
|
**Signature:**
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
constructor(opts: {
|
|
|
|
origin: APIClient["origin"];
|
|
|
|
credential?: APIClient["credential"];
|
|
|
|
fetch?: APIClient["fetch"] | null | undefined;
|
|
|
|
});
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
2023-07-02 22:18:30 +00:00
|
|
|
| opts | { origin: [APIClient](./firefish-js.api.apiclient.md)<!-- -->\["origin"\]; credential?: [APIClient](./firefish-js.api.apiclient.md)<!-- -->\["credential"\]; fetch?: [APIClient](./firefish-js.api.apiclient.md)<!-- -->\["fetch"\] \| null \| undefined; } | |
|
2023-06-24 04:13:03 +00:00
|
|
|
|