getImapSmtpAccessWithHttpInfo method
Get IMAP and SMTP access usernames and passwords
Note: This method returns the HTTP Response
.
Parameters:
- String inboxId: Inbox ID
Implementation
Future<Response> getImapSmtpAccessWithHttpInfo({ String? inboxId, }) async {
// ignore: prefer_const_declarations
final path = r'/inboxes/imap-smtp-access';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (inboxId != null) {
queryParams.addAll(_queryParams('', 'inboxId', inboxId));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}