postNotifySendSmsWithHttpInfo method

Future<Response> postNotifySendSmsWithHttpInfo(
  1. NotifySend notifySend
)

Delivers one transactional SMS through the caller org's own provider credential.

Delivers one transactional SMS through the caller org's own provider credential. It is the channel-pinned form of the generic send: identical in every respect except that the channel is fixed to sms, OVERRIDING whatever the body names — so a body that says email still goes out as a text message. The provider is the org's own SMS credential from KMS (Twilio, then Plivo), resolved for the validated principal's org; an unauthenticated caller gets 401.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> postNotifySendSmsWithHttpInfo(NotifySend notifySend,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/notify/send/sms';

  // ignore: prefer_final_locals
  Object? postBody = notifySend;

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