createPhoneNumberWithHttpInfo method

Future<Response> createPhoneNumberWithHttpInfo({
  1. CreatePhoneNumberRequest? createPhoneNumberRequest,
})

Create a phone number

Create a new phone number

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<http.Response> createPhoneNumberWithHttpInfo({
  CreatePhoneNumberRequest? createPhoneNumberRequest,
}) async {
  // ignore: prefer_const_declarations
  final path = r'/phone_numbers';

  // ignore: prefer_final_locals
  Object? postBody = createPhoneNumberRequest;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];

  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}