getLatestEmailInInbox1WithHttpInfo method
Get latest email in an inbox. Use WaitForController
to get emails that may not have arrived yet.
Get the newest email in all inboxes or in a passed set of inbox IDs
Note: This method returns the HTTP Response
.
Parameters:
- String inboxId (required): ID of the inbox you want to get the latest email from
Implementation
Future<Response> getLatestEmailInInbox1WithHttpInfo(String inboxId,) async {
// ignore: prefer_const_declarations
final path = r'/emails/latestIn';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
queryParams.addAll(_queryParams('', 'inboxId', inboxId));
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}