⚪E-mail SMTP
https://host/webservice/v1/smtp
🟢Listar
{
"qtype" : "smtp.id",//campo de filtro
"query" : "1",//valor para consultar
"oper" : ">=",//operador da consulta
"page" : "1",//página a ser mostrada
"rp" : "2000",//quantidade de registros por página
"sortname" : "smtp.id",//campo para ordenar a consulta
"sortorder" : "desc"//ordenação (asc= crescente | desc=decrescente)
}curl --location --request GET 'https://host/webservice/v1/smtp' \
--header 'ixcsoft: listar' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=vkld052nm6do0grh1d8a1nat2d' \
--data '{
"qtype" : "smtp.id",
"query" : "1",
"oper" : ">=",
"page" : "1",
"rp" : "2000",
"sortname" : "smtp.id",
"sortorder" : "desc"
}'🟠Inserir
{
"servidor_saida":"",
"usuario":"",
"senha":"",
"porta":"",
"assunto_envio":"",
"texto_envio":""
}{
"assunto_envio": "",
"usuario": "",
"servidor_saida": "",
"porta": "",
"autenticacao": "",
"conexao_ssl": "",
"senha": "",
"destino_envio": "",
"texto_envio": "",
"remetente": "",
"codificacao_utf8": "",
"limite_hora": "",
"limite_dia": "",
"forcar_codificacao": "",
"responsavel_envio": ""
}curl --location 'https://host/webservice/v1/smtp' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=vkld052nm6do0grh1d8a1nat2d' \
--data '{
"assunto_envio": "",
"usuario": "",
"servidor_saida": "",
"porta": "",
"autenticacao": "",
"conexao_ssl": "",
"senha": "",
"destino_envio": "",
"texto_envio": "",
"remetente": "",
"codificacao_utf8": "",
"limite_hora": "",
"limite_dia": "",
"forcar_codificacao": "",
"responsavel_envio": ""
}'🔵Editar
Deve ser informado o id, a ser editado, na URL:
https://host/webservice/v1/smtp/5
Todos os campos devem ser inseridos para realizar uma alteração cadastral.
{
"assunto_envio": "",
"usuario": "",
"servidor_saida": "",
"porta": "",
"autenticacao": "",
"conexao_ssl": "",
"senha": "",
"destino_envio": "",
"texto_envio": "",
"remetente": "",
"codificacao_utf8": "",
"limite_hora": "",
"limite_dia": "",
"forcar_codificacao": "",
"responsavel_envio": ""
}curl --location --request PUT 'https://host/webservice/v1/smtp/5' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data '{
"assunto_envio": "",
"usuario": "",
"servidor_saida": "",
"porta": "",
"autenticacao": "",
"conexao_ssl": "",
"senha": "",
"destino_envio": "",
"texto_envio": "",
"remetente": "",
"codificacao_utf8": "",
"limite_hora": "",
"limite_dia": "",
"forcar_codificacao": "",
"responsavel_envio": ""
}'🔴Deletar
Deve ser informado o id, a ser excluído, na URL: https://host/webservice/v1/smtp/5
curl --location --request DELETE 'https://host/webservice/v1/smtp/5' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=vkld052nm6do0grh1d8a1nat2d' \
--data ''Last updated