curl -X POST "https://www.ivcert.net/ivcert/api/Operation/SetMetadataSMTPOperation?appId=&userName=&password=&messageId=&mailFrom=&mailTo=&dateSend=&smtpCode=&smtpDescription=&smtpRelay=&smtpResult=&evidenceId=&api-version="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OperationApi;
import java.io.File;
import java.util.*;
public class OperationApiExample {
public static void main(String[] args) {
OperationApi apiInstance = new OperationApi();
String appId = appId_example; // String | Personalization identifier
String userName = userName_example; // String | User
String password = password_example; // String | Password user
String messageId = messageId_example; // String | Message identifier
String mailFrom = mailFrom_example; // String | Mail from
String mailTo = mailTo_example; // String | Mail to
String dateSend = dateSend_example; // String | Send date
Integer smtpCode = 56; // Integer | SMTP code
String smtpDescription = smtpDescription_example; // String | SMTP description
String smtpRelay = smtpRelay_example; // String | SMTP relay
Boolean smtpResult = true; // Boolean | SMTP result
String evidenceId = evidenceId_example; // String | Evidence identifier
String authorization = authorization_example; // String | The authorization token
String apiVersion = apiVersion_example; // String |
try {
IvCertGenericResponse['Boolean'] result = apiInstance.operationPostSetMetadataSMTPOperation(appId, userName, password, messageId, mailFrom, mailTo, dateSend, smtpCode, smtpDescription, smtpRelay, smtpResult, evidenceId, authorization, apiVersion);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OperationApi#operationPostSetMetadataSMTPOperation");
e.printStackTrace();
}
}
}
import io.swagger.client.api.OperationApi;
public class OperationApiExample {
public static void main(String[] args) {
OperationApi apiInstance = new OperationApi();
String appId = appId_example; // String | Personalization identifier
String userName = userName_example; // String | User
String password = password_example; // String | Password user
String messageId = messageId_example; // String | Message identifier
String mailFrom = mailFrom_example; // String | Mail from
String mailTo = mailTo_example; // String | Mail to
String dateSend = dateSend_example; // String | Send date
Integer smtpCode = 56; // Integer | SMTP code
String smtpDescription = smtpDescription_example; // String | SMTP description
String smtpRelay = smtpRelay_example; // String | SMTP relay
Boolean smtpResult = true; // Boolean | SMTP result
String evidenceId = evidenceId_example; // String | Evidence identifier
String authorization = authorization_example; // String | The authorization token
String apiVersion = apiVersion_example; // String |
try {
IvCertGenericResponse['Boolean'] result = apiInstance.operationPostSetMetadataSMTPOperation(appId, userName, password, messageId, mailFrom, mailTo, dateSend, smtpCode, smtpDescription, smtpRelay, smtpResult, evidenceId, authorization, apiVersion);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OperationApi#operationPostSetMetadataSMTPOperation");
e.printStackTrace();
}
}
}
String *appId = appId_example; // Personalization identifier
String *userName = userName_example; // User
String *password = password_example; // Password user
String *messageId = messageId_example; // Message identifier
String *mailFrom = mailFrom_example; // Mail from
String *mailTo = mailTo_example; // Mail to
String *dateSend = dateSend_example; // Send date
Integer *smtpCode = 56; // SMTP code
String *smtpDescription = smtpDescription_example; // SMTP description
String *smtpRelay = smtpRelay_example; // SMTP relay
Boolean *smtpResult = true; // SMTP result
String *evidenceId = evidenceId_example; // Evidence identifier
String *authorization = authorization_example; // The authorization token (default to Bearer )
String *apiVersion = apiVersion_example; // (optional)
OperationApi *apiInstance = [[OperationApi alloc] init];
// Insert metadata about mail send of operation
[apiInstance operationPostSetMetadataSMTPOperationWith:appId
userName:userName
password:password
messageId:messageId
mailFrom:mailFrom
mailTo:mailTo
dateSend:dateSend
smtpCode:smtpCode
smtpDescription:smtpDescription
smtpRelay:smtpRelay
smtpResult:smtpResult
evidenceId:evidenceId
authorization:authorization
apiVersion:apiVersion
completionHandler: ^(IvCertGenericResponse['Boolean'] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var IvcertApiV1 = require('ivcert_api_v1');
var api = new IvcertApiV1.OperationApi()
var appId = appId_example; // {String} Personalization identifier
var userName = userName_example; // {String} User
var password = password_example; // {String} Password user
var messageId = messageId_example; // {String} Message identifier
var mailFrom = mailFrom_example; // {String} Mail from
var mailTo = mailTo_example; // {String} Mail to
var dateSend = dateSend_example; // {String} Send date
var smtpCode = 56; // {Integer} SMTP code
var smtpDescription = smtpDescription_example; // {String} SMTP description
var smtpRelay = smtpRelay_example; // {String} SMTP relay
var smtpResult = true; // {Boolean} SMTP result
var evidenceId = evidenceId_example; // {String} Evidence identifier
var authorization = authorization_example; // {String} The authorization token
var opts = {
'apiVersion': apiVersion_example // {String}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.operationPostSetMetadataSMTPOperation(appId, userName, password, messageId, mailFrom, mailTo, dateSend, smtpCode, smtpDescription, smtpRelay, smtpResult, evidenceId, authorization, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class operationPostSetMetadataSMTPOperationExample
{
public void main()
{
var apiInstance = new OperationApi();
var appId = appId_example; // String | Personalization identifier
var userName = userName_example; // String | User
var password = password_example; // String | Password user
var messageId = messageId_example; // String | Message identifier
var mailFrom = mailFrom_example; // String | Mail from
var mailTo = mailTo_example; // String | Mail to
var dateSend = dateSend_example; // String | Send date
var smtpCode = 56; // Integer | SMTP code
var smtpDescription = smtpDescription_example; // String | SMTP description
var smtpRelay = smtpRelay_example; // String | SMTP relay
var smtpResult = true; // Boolean | SMTP result
var evidenceId = evidenceId_example; // String | Evidence identifier
var authorization = authorization_example; // String | The authorization token (default to Bearer )
var apiVersion = apiVersion_example; // String | (optional)
try
{
// Insert metadata about mail send of operation
IvCertGenericResponse['Boolean'] result = apiInstance.operationPostSetMetadataSMTPOperation(appId, userName, password, messageId, mailFrom, mailTo, dateSend, smtpCode, smtpDescription, smtpRelay, smtpResult, evidenceId, authorization, apiVersion);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling OperationApi.operationPostSetMetadataSMTPOperation: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\OperationApi();
$appId = appId_example; // String | Personalization identifier
$userName = userName_example; // String | User
$password = password_example; // String | Password user
$messageId = messageId_example; // String | Message identifier
$mailFrom = mailFrom_example; // String | Mail from
$mailTo = mailTo_example; // String | Mail to
$dateSend = dateSend_example; // String | Send date
$smtpCode = 56; // Integer | SMTP code
$smtpDescription = smtpDescription_example; // String | SMTP description
$smtpRelay = smtpRelay_example; // String | SMTP relay
$smtpResult = true; // Boolean | SMTP result
$evidenceId = evidenceId_example; // String | Evidence identifier
$authorization = authorization_example; // String | The authorization token
$apiVersion = apiVersion_example; // String |
try {
$result = $api_instance->operationPostSetMetadataSMTPOperation($appId, $userName, $password, $messageId, $mailFrom, $mailTo, $dateSend, $smtpCode, $smtpDescription, $smtpRelay, $smtpResult, $evidenceId, $authorization, $apiVersion);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OperationApi->operationPostSetMetadataSMTPOperation: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::OperationApi;
my $api_instance = WWW::SwaggerClient::OperationApi->new();
my $appId = appId_example; # String | Personalization identifier
my $userName = userName_example; # String | User
my $password = password_example; # String | Password user
my $messageId = messageId_example; # String | Message identifier
my $mailFrom = mailFrom_example; # String | Mail from
my $mailTo = mailTo_example; # String | Mail to
my $dateSend = dateSend_example; # String | Send date
my $smtpCode = 56; # Integer | SMTP code
my $smtpDescription = smtpDescription_example; # String | SMTP description
my $smtpRelay = smtpRelay_example; # String | SMTP relay
my $smtpResult = true; # Boolean | SMTP result
my $evidenceId = evidenceId_example; # String | Evidence identifier
my $authorization = authorization_example; # String | The authorization token
my $apiVersion = apiVersion_example; # String |
eval {
my $result = $api_instance->operationPostSetMetadataSMTPOperation(appId => $appId, userName => $userName, password => $password, messageId => $messageId, mailFrom => $mailFrom, mailTo => $mailTo, dateSend => $dateSend, smtpCode => $smtpCode, smtpDescription => $smtpDescription, smtpRelay => $smtpRelay, smtpResult => $smtpResult, evidenceId => $evidenceId, authorization => $authorization, apiVersion => $apiVersion);
print Dumper($result);
};
if ($@) {
warn "Exception when calling OperationApi->operationPostSetMetadataSMTPOperation: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.OperationApi()
appId = appId_example # String | Personalization identifier
userName = userName_example # String | User
password = password_example # String | Password user
messageId = messageId_example # String | Message identifier
mailFrom = mailFrom_example # String | Mail from
mailTo = mailTo_example # String | Mail to
dateSend = dateSend_example # String | Send date
smtpCode = 56 # Integer | SMTP code
smtpDescription = smtpDescription_example # String | SMTP description
smtpRelay = smtpRelay_example # String | SMTP relay
smtpResult = true # Boolean | SMTP result
evidenceId = evidenceId_example # String | Evidence identifier
authorization = authorization_example # String | The authorization token (default to Bearer )
apiVersion = apiVersion_example # String | (optional)
try:
# Insert metadata about mail send of operation
api_response = api_instance.operation_post_set_metadata_smtp_operation(appId, userName, password, messageId, mailFrom, mailTo, dateSend, smtpCode, smtpDescription, smtpRelay, smtpResult, evidenceId, authorization, apiVersion=apiVersion)
pprint(api_response)
except ApiException as e:
print("Exception when calling OperationApi->operationPostSetMetadataSMTPOperation: %s\n" % e)