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:
urlServer URL.nameDisplay name of the user.emailEmail of the user.languageLanguage of the user.countryCountry of the user.apiVersionDefaults tov1.oCSAPIRequestRequired 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
DynamiteRawResponsethat can be serialized.
Implementation
Future<_i1.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;
}