iceshrimp/packages/iceshrimp-sdk/markdown/iceshrimp-sdk.api.apiclient._constructor_.md
Laura Hausmann 91dddc439f
[sdk] Rename iceshrimp-js package to iceshrimp-sdk
This resolves possible confusion between iceshrimp-js (this project) and iceshrimp-sdk (the package)
2024-07-23 23:15:19 +02:00

953 B

Home > iceshrimp-sdk > api > APIClient > (constructor)

api.APIClient.(constructor)

Constructs a new instance of the APIClient class

Signature:

constructor(opts: {
        origin: APIClient["origin"];
        credential?: APIClient["credential"];
        fetch?: APIClient["fetch"] | null | undefined;
    });

Parameters

Parameter Type Description
opts { origin: APIClient["origin"]; credential?: APIClient["credential"]; fetch?: APIClient["fetch"] | null | undefined; }