postDMThreadReplyWithHttpInfo method
Future<Response>
postDMThreadReplyWithHttpInfo(
- String dmId,
- String messageId,
- DMThreadReplyRequest dMThreadReplyRequest, {
- String? accountId,
Reply in a DM message thread.
Note: This method returns the HTTP Response.
Parameters:
-
String dmId (required): Direct-message conversation id.
-
String messageId (required): Chat-message id.
-
DMThreadReplyRequest dMThreadReplyRequest (required):
-
String accountId:
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,
);
}