replyToSmsMessageWithHttpInfo method

Future<Response> replyToSmsMessageWithHttpInfo(
  1. String smsId,
  2. SmsReplyOptions smsReplyOptions
)

Send a reply to a received SMS message. Replies are sent from the receiving number.

Reply to an SMS message.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> replyToSmsMessageWithHttpInfo(String smsId, SmsReplyOptions smsReplyOptions,) async {
  // ignore: prefer_const_declarations
  final path = r'/sms/{smsId}/reply'
    .replaceAll('{smsId}', smsId);

  // ignore: prefer_final_locals
  Object? postBody = smsReplyOptions;

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