MorphrCloudClient.withApiKey constructor

MorphrCloudClient.withApiKey({
  1. required String baseUrl,
  2. required String clientId,
  3. required String clientSecret,
  4. Duration timeout = const Duration(seconds: 30),
})

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,
  );
}