var clientAccountSaveRequest = new ClientAccountSaveRequest
{
StorageFile = new StorageFileLocation
{
FileName = "email.account",
Storage = "First Storage",
FolderPath = "file/location/folder/on/storage"
},
Value = new EmailClientAccount
{
Host = "smtp.example.com",
Port = 465,
SecurityOptions = "SSLAuto",
ProtocolType = "SMTP",
Credentials = new EmailClientAccountOauthCredentials
{
ClientId = "clientId",
ClientSecret = "clientSecret",
RefreshToken = "refreshToken",
Login = "example@example.com"
},
CacheFile = new StorageFileLocation
{
FileName = "account.cache",
Storage = "First Storage",
FolderPath = "file/location/folder/on/storage"
}
}
};
ClientAccountSaveRequest clientAccountSaveRequest = Models.clientAccountSaveRequest()
.storageFile(Models.storageFileLocation()
.fileName("email.account")
.storage("First Storage")
.folderPath("file/location/folder/on/storage")
.build())
.value(Models.emailClientAccount()
.host("smtp.example.com")
.port(465)
.securityOptions("SSLAuto")
.protocolType("SMTP")
.credentials(Models.emailClientAccountOauthCredentials()
.clientId("clientId")
.clientSecret("clientSecret")
.refreshToken("refreshToken")
.login("example@example.com")
.build())
.cacheFile(Models.storageFileLocation()
.fileName("account.cache")
.storage("First Storage")
.folderPath("file/location/folder/on/storage")
.build())
.build())
.build();
client_account_save_request = models.ClientAccountSaveRequest(
storage_file=models.StorageFileLocation(
file_name='email.account',
storage='First Storage',
folder_path='file/location/folder/on/storage'),
value=models.EmailClientAccount(
host='smtp.example.com',
port=465,
security_options='SSLAuto',
protocol_type='SMTP',
credentials=models.EmailClientAccountOauthCredentials(
client_id='clientId',
client_secret='clientSecret',
refresh_token='refreshToken',
login='example@example.com'),
cache_file=models.StorageFileLocation(
file_name='account.cache',
storage='First Storage',
folder_path='file/location/folder/on/storage')))
client_account_save_request = ClientAccountSaveRequest.new(
storage_file: StorageFileLocation.new(
file_name: 'email.account',
storage: 'First Storage',
folder_path: 'file/location/folder/on/storage'),
value: EmailClientAccount.new(
host: 'smtp.example.com',
port: 465,
security_options: 'SSLAuto',
protocol_type: 'SMTP',
credentials: EmailClientAccountOauthCredentials.new(
client_id: 'clientId',
client_secret: 'clientSecret',
refresh_token: 'refreshToken',
login: 'example@example.com'),
cache_file: StorageFileLocation.new(
file_name: 'account.cache',
storage: 'First Storage',
folder_path: 'file/location/folder/on/storage')))
let clientAccountSaveRequest = Models.clientAccountSaveRequest()
.storageFile(Models.storageFileLocation()
.fileName('email.account')
.storage('First Storage')
.folderPath('file/location/folder/on/storage')
.build())
.value(Models.emailClientAccount()
.host('smtp.example.com')
.port(465)
.securityOptions('SSLAuto')
.protocolType('SMTP')
.credentials(Models.emailClientAccountOauthCredentials()
.clientId('clientId')
.clientSecret('clientSecret')
.refreshToken('refreshToken')
.login('example@example.com')
.build())
.cacheFile(Models.storageFileLocation()
.fileName('account.cache')
.storage('First Storage')
.folderPath('file/location/folder/on/storage')
.build())
.build())
.build();
$clientAccountSaveRequest = Models::clientAccountSaveRequest()
->storageFile(Models::storageFileLocation()
->fileName('email.account')
->storage('First Storage')
->folderPath('file/location/folder/on/storage')
->build())
->value(Models::emailClientAccount()
->host('smtp.example.com')
->port(465)
->securityOptions('SSLAuto')
->protocolType('SMTP')
->credentials(Models::emailClientAccountOauthCredentials()
->clientId('clientId')
->clientSecret('clientSecret')
->refreshToken('refreshToken')
->login('example@example.com')
->build())
->cacheFile(Models::storageFileLocation()
->fileName('account.cache')
->storage('First Storage')
->folderPath('file/location/folder/on/storage')
->build())
->build())
->build();