requestTrial method
Future<DynamiteResponse<HostedSignalingServerRequestTrialResponseApplicationJson, void> >
requestTrial({})
Request a trial account.
This endpoint requires admin access.
Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers. Throws a DynamiteApiException if the API call does not return an expected status code.
Parameters:
url
Server URL.name
Display name of the user.email
Email of the user.language
Language of the user.country
Country of the user.apiVersion
Defaults tov1
.oCSAPIRequest
Required to be true for the API request to pass. Defaults totrue
.
Status codes:
- 200: Trial requested successfully
- 400: Requesting trial is not possible
- 500
See:
- requestTrialRaw for an experimental operation that returns a DynamiteRawResponse that can be serialized.
Implementation
Future<DynamiteResponse<HostedSignalingServerRequestTrialResponseApplicationJson, void>> requestTrial({
required String url,
required String name,
required String email,
required String language,
required String country,
HostedSignalingServerRequestTrialApiVersion? apiVersion,
bool? oCSAPIRequest,
}) async {
final rawResponse = requestTrialRaw(
url: url,
name: name,
email: email,
language: language,
country: country,
apiVersion: apiVersion,
oCSAPIRequest: oCSAPIRequest,
);
return rawResponse.future;
}