postDMThreadReplyWithHttpInfo method

Future<Response> postDMThreadReplyWithHttpInfo(
  1. String dmId,
  2. String messageId,
  3. DMThreadReplyRequest dMThreadReplyRequest, {
  4. String? accountId,
})

Reply in a DM message thread.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> postDMThreadReplyWithHttpInfo(String dmId, String messageId, DMThreadReplyRequest dMThreadReplyRequest, { String? accountId, }) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/direct-messages/{dmId}/messages/{messageId}/replies'
    .replaceAll('{dmId}', dmId)
    .replaceAll('{messageId}', messageId);

  // ignore: prefer_final_locals
  Object? postBody = dMThreadReplyRequest;

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

  if (accountId != null) {
    queryParams.addAll(_queryParams('', 'accountId', accountId));
  }

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


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