getDomainAvailabilityWithHttpInfo method
Checks exact names rather than searching for them, and answers the same quote shape search does — purchasable, premium, first-term and renewal price in cents.
Checks exact names rather than searching for them, and answers the same quote shape search does — purchasable, premium, first-term and renewal price in cents. It requires a validated principal; 403 without one. Nothing is charged and nothing is held. A deployment with no registrar credentials answers 503.
Note: This method returns the HTTP Response.
Parameters:
- String domain (required): Domain is one name, or several comma-separated, to check in one call. Names are lowercased. It is required.
Implementation
Future<Response> getDomainAvailabilityWithHttpInfo(String domain,) async {
// ignore: prefer_const_declarations
final path = r'/v1/domain/availability';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
queryParams.addAll(_queryParams('', 'domain', domain));
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}