var request = new ClientMessageAppendFileRequest
{
Account = "email.multi.account",
File = new MemoryStream(File.ReadAllBytes("/path/to/message.eml")),
Storage = "First Storage",
AccountStorageFolder = "email/account/location/on/storage",
Format = "Eml",
Folder = "INBOX"
};
ClientMessageAppendFileRequest request = Models.clientMessageAppendFileRequest()
.account("email.multi.account")
.file(IOUtils.toByteArray(new FileInputStream("/path/to/message.eml")))
.storage("First Storage")
.accountStorageFolder("email/account/location/on/storage")
.format("Eml")
.folder("INBOX")
.build();
request = models.ClientMessageAppendFileRequest(
account='email.multi.account',
file='/path/to/message.eml',
storage='First Storage',
account_storage_folder='email/account/location/on/storage',
format='Eml',
folder='INBOX')
request = ClientMessageAppendFileRequest.new(
account: 'email.multi.account',
file: File.new('/path/to/message.eml'),
storage: 'First Storage',
account_storage_folder: 'email/account/location/on/storage',
format: 'Eml',
folder: 'INBOX')
let request = Models.ClientMessageAppendFileRequest()
.account('email.multi.account')
.file(fs.readFileSync('/path/to/message.eml'))
.storage('First Storage')
.accountStorageFolder('email/account/location/on/storage')
.format('Eml')
.folder('INBOX')
.build();
$request = Models::ClientMessageAppendFileRequest()
->account('email.multi.account')
->file(new SplFileObject('/path/to/message.eml'))
->storage('First Storage')
->account_storage_folder('email/account/location/on/storage')
->format('Eml')
->folder('INBOX')
->build();