var emailClientAccount = 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"
}
};
EmailClientAccount emailClientAccount = 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();
email_client_account = 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'))
email_client_account = 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 emailClientAccount = 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();
$emailClientAccount = 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();