Sub commands/Child commands
To view the details of sub commands/child commands within a main command, run the below command:
<command> help
For example: message help
To view child commands
Copiedzmail:>message helpOutput
Copiedzmail:>message help
Usage: <main class> message [COMMAND]
message commands
Commands:
help Display help information about the specified command.
apply-label This API is used to apply labels to a particular email
or a group of emails.
archive This API is used to archive an email or a group of
emails.
delete This API is used to delete an email.
flag This API is used to set one of the four flags (info,
important, follow-up, flag_not_set) for a particular
email or a group of emails.
retrieve-attachment The API is used to retrieve the content of the
attachments in an email. In case, there are multiple
attachments, the user needs to use the api for each
attachment with the respective details.
list-attachment The API retrieves the attachment information of a
particular email, based on the message ID passed in
the request URL.
retrieve-content This API is used to retrieve the message contents of an
email based on the message ID passed in the request
URL. In case, you retrieve an email from a thread, you
can add the includeBlockContent parameter to get the
reply email and the parent email separately. If block
content is available but the includeBlockContent
parameter is not passed, then the original email
content can only be retrieved.
Once the command is run, all the child commands under the main command will be displayed.