MorphrCloudClient.withApiKey constructor
MorphrCloudClient.withApiKey({})
Creates a new MorphrCloudClient instance with API key authentication.
The baseUrl parameter is the base URL of the Morphr Cloud API.
The clientId and clientSecret are the API credentials for the app.
Implementation
factory MorphrCloudClient.withApiKey({
required String baseUrl,
required String clientId,
required String clientSecret,
Duration timeout = const Duration(seconds: 30),
}) {
return MorphrCloudClient._apiKey(
baseUrl: baseUrl,
clientId: clientId,
clientSecret: clientSecret,
timeout: timeout,
);
}