NAV -image
php bash javascript python

Introduction

iPORTO: Delivery de Emails

A iPORTO, É uma empresa especialista em ferramentas para entrega de emails, fundada em 2003. Sediada em Porto Alegre, RS. Estrutura própria de Servidores e Código.

Introdução a iPORTO e sua API

O objetivo desta documentação é orientar o desenvolvedor sobre como integrar com a API iPORTO, descrevendo as funcionalidades, os métodos a serem utilizados, listando informações a serem enviadas e recebidas, e provendo exemplos.

Authenticating requests

This API is not authenticated.

App\General

api/collective/core/help/article/article

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/collective/core/help/article/article',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/collective/core/help/article/article" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/collective/core/help/article/article"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/collective/core/help/article/article'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Request

GET api/collective/core/help/article/article

api/collective/core/help/article/article/{id}

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/collective/core/help/article/article/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/collective/core/help/article/article/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/collective/core/help/article/article/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/collective/core/help/article/article/1'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Request

GET api/collective/core/help/article/article/{id}

api/collective/core/help/article/glossary

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/collective/core/help/article/glossary',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/collective/core/help/article/glossary" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/collective/core/help/article/glossary"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/collective/core/help/article/glossary'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Request

GET api/collective/core/help/article/glossary

api/collective/core/help/article/glossary/{id}

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/collective/core/help/article/glossary/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/collective/core/help/article/glossary/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/collective/core/help/article/glossary/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/collective/core/help/article/glossary/1'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Request

GET api/collective/core/help/article/glossary/{id}

api/collective/core/help/article/post

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/collective/core/help/article/post',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/collective/core/help/article/post" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/collective/core/help/article/post"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/collective/core/help/article/post'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Request

GET api/collective/core/help/article/post

api/collective/core/help/article/post/{id}

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/collective/core/help/article/post/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/collective/core/help/article/post/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/collective/core/help/article/post/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/collective/core/help/article/post/1'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Request

GET api/collective/core/help/article/post/{id}

api/collective/core/help/article/project

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/collective/core/help/article/project',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/collective/core/help/article/project" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/collective/core/help/article/project"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/collective/core/help/article/project'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Request

GET api/collective/core/help/article/project

api/collective/core/help/article/project/{id}

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/collective/core/help/article/project/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/collective/core/help/article/project/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/collective/core/help/article/project/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/collective/core/help/article/project/1'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Request

GET api/collective/core/help/article/project/{id}

api/collective/core/help/article/question

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/collective/core/help/article/question',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/collective/core/help/article/question" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/collective/core/help/article/question"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/collective/core/help/article/question'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Request

GET api/collective/core/help/article/question

api/collective/core/help/article/question/{id}

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/collective/core/help/article/question/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/collective/core/help/article/question/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/collective/core/help/article/question/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/collective/core/help/article/question/1'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Request

GET api/collective/core/help/article/question/{id}

api/collective/core/help/article/tutorial

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/collective/core/help/article/tutorial',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/collective/core/help/article/tutorial" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/collective/core/help/article/tutorial"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/collective/core/help/article/tutorial'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Request

GET api/collective/core/help/article/tutorial

api/collective/core/help/article/tutorial/{id}

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/collective/core/help/article/tutorial/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/collective/core/help/article/tutorial/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/collective/core/help/article/tutorial/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/collective/core/help/article/tutorial/1'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Request

GET api/collective/core/help/article/tutorial/{id}

api/{fallbackPlaceholder}

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/1'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Request

GET api/{fallbackPlaceholder}

Auth\Api

Gestão de CHAVES de API.

Auth\Api\generate

Gera uma nova Chave de API para o Usuário logado.

alt text

REQUISIÇÃO NÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api-app.iporto.com.br/api/token/generate',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'json' => [
            'name' => 'vel',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X POST \
    "https://api-app.iporto.com.br/api/token/generate" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"name":"vel"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/token/generate"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "name": "vel"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/token/generate'
payload = {
    "name": "vel"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "success": {
        "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImNjMmVjZDRhNzMzZjU5NDlhZDJlOTRjYjYwNmQyY2E2MDZkYzI3ODYwYzMxYjVlMWFhOTlmN2ViOWM2ZDhjMTMxOTk0MDc2MzRjMzg5OWVkIn0.eyJhdWQiOiIxIiwianRpIjoiY2MyZWNkNGE3MzNmNTk0OWFkMmU5NGNiNjA2ZDJjYTYwNmRjMjc4NjBjMzFiNWUxYWE5OWY3ZWI5YzZkOGMxMzE5OTQwNzYzNGMzODk5ZWQiLCJpYXQiOjE1NTk2NTczMzgsIm5iZiI6MTU1OTY1NzMzOCwiZXhwIjoxNTkxMjc5NzM3LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.Aqh7GT3oSE774VKTAztO8elPlKGqUnnffA2KDcdl1HNGPwq0Jw5d7KZkqr7h7_yWZAL6a_QAQEJ0YY7TYFBwcX1vxLbGrl3sOn0_Hv-tNrAb3XOv0mbAV6gNns8Ty_ZnuE2pxkVVKw37BM-XM8Vtj4XKb9I42hRjDiaw3Q4vVasdggs7SFVjY8TMRvVn_eSSPqRS1GzIMFVKMWfDzS3eEtn2gLhJ3GUvEZ74bZQiOw6GlvyVcCdlZ3HpcSJlQTgsnt7XNtmY75OEf273MRrb1HZuertw0_KhbD9fCQlS4pyr-dIpuWTaxrrN7bQbyEjGOsHzxEVFFNh2cC6ioSoJdCpmEv3467FwUPzqF4Xk2762UmME_M6owSYj8TZFRV02fRqv3yJY4KwTGLOod2opKU7AlqL5UNErJNIYtsnFzwnoCT9Tw4c5XZGt6hekZqqRexT7irqqGu-M_qmiOfLyF4txfKgJfPLH_Qm2GjQqHhDFZ7DFBuUPYhNbh3j6hpkU4tL1dllZMqQPR1aia7yOY-*0CEb7aU16xIFT_n53t9bNg2n92C6t1OeKg3sA_3XY5dcyQNVtsycazQ6yiEhfFpGFbkaRsC9wFJaEjMlzS54DjpSNLFsz-5LiOahYLHohlpERAbsISoWEASsIQAzeQsQoCckj8IdPVo0FuH_QmiYvk"
    },
    "data": {
        "id": 1,
        "client_id": 1,
        "name": "Frederico",
        "email": "dev@iporto.io",
        "is_active": 1,
        "scopes": "[]",
        "status": "cadastroAtivo",
        "last_action_at": {
            "date": "2019-06-04 11:08:56.168163",
            "timezone_type": 3,
            "timezone": "America\/Sao_Paulo"
        },
        "created_at": "2018-10-19 09:19:24",
        "updated_at": "2019-06-04 11:08:56",
        "deleted_at": null,
        "api_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImNjMmVjZDRhNzMzZjU5NDlhZDJlOTRjYjYwNmQyY2E2MDZkYzI3ODYwYzMxYjVlMWFhOTlmN2ViOWM2ZDhjMTMxOTk0MDc2MzRjMzg5OWVkIn0.eyJhdWQiOiIxIiwianRpIjoiY2MyZWNkNGE3MzNmNTk0OWFkMmU5NGNiNjA2ZDJjYTYwNmRjMjc4NjBjMzFiNWUxYWE5OWY3ZWI5YzZkOGMxMzE5OTQwNzYzNGMzODk5ZWQiLCJpYXQiOjE1NTk2NTczMzgsIm5iZiI6MTU1OTY1NzMzOCwiZXhwIjoxNTkxMjc5NzM3LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.Aqh7GT3oSE774VKTAztO8elPlKGqUnnffA2KDcdl1HNGPwq0Jw5d7KZkqr7h7_yWZAL6a_QAQEJ0YY7TYFBwcX1vxLbGrl3sOn0_Hv-tNrAb3XOv0mbAV6gNns8Ty_ZnuE2pxkVVKw37BM-XM8Vtj4XKb9I42hRjDiaw3Q4vVasdggs7SFVjY8TMRvVn_eSSPqRS1GzIMFVKMWfDzS3eEtn2gLhJ3GUvEZ74bZQiOw6GlvyVcCdlZ3HpcSJlQTgsnt7XNtmY75OEf273MRrb1HZuertw0_KhbD9fCQlS4pyr-dIpuWTaxrrN7bQbyEjGOsHzxEVFFNh2cC6ioSoJdCpmEv3467FwUPzqF4Xk2762UmME_M6owSYj8TZFRV02fRqv3yJY4KwTGLOod2opKU7AlqL5UNErJNIYtsnFzwnoCT9Tw4c5XZGt6hekZqqRexT7irqqGu-M_qmiOfLyF4txfKgJfPLH_Qm2GjQqHhDFZ7DFBuUPYhNbh3j6hpkU4tL1dllZMqQPR1aia7yOY-*0CEb7aU16xIFT_n53t9bNg2n92C6t1OeKg3sA_3XY5dcyQNVtsycazQ6yiEhfFpGFbkaRsC9wFJaEjMlzS54DjpSNLFsz-5LiOahYLHohlpERAbsISoWEASsIQAzeQsQoCckj8IdPVo0FuH_QmiYvk",
        "display_at": "2019-06-04 11:08:59",
        "credit": {
            "amount_general": 1,
            "amount_positive": "1",
            "amount_negative": "1",
            "amount_percent_usage": "79.49",
            "amount_basic": "1",
            "amount_professional": "1",
            "amount_advanced": "1",
            "amount_relay": 0
        },
        "limit": {
            "id": 1,
            "client_id": 1,
            "domains": 5,
            "domain_user_account": 25,
            "created_at": "2018-12-17 15:29:54",
            "updated_at": "2018-12-17 15:29:54",
            "display_at": "2019-06-04 11:09:02"
        },
        "application": {
            "APP_ALLOWS_RESELLER": true,
            "APP_USES_CREDITS": true,
            "APP_HAS_LIMITS": true
        }
    }
}

Request

POST api/token/generate

Body Parameters

name  string optional
NOME DA CHAVE DE API. Ex: MinhaAPI

Auth\Api\tokens

Lista CHAVES de API de um Usuário logado.

alt text

REQUISIÇÃO NÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/token/tokens',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/token/tokens" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/token/tokens"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/token/tokens'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "data": [
        {
            "id": "e534e5389eb529116c5defe6e799efc362ci500216d53864df09b84aa5906e97c3185bb2b8902212",
            "name": "API-MinhaAPI",
            "expires_at": {
                "date": "2020-06-04 11:25:16.000000",
                "timezone_type": 3,
                "timezone": "America\/Sao_Paulo"
            }
        },
        {
            "id": "cc2ecd4a733f5949ad2e94cb606d2ca606ac27860c31b5e1aa99f7eb9c6d8c13199407634c3899a1",
            "name": "API-MinhaAPI (2)",
            "expires_at": {
                "date": "2020-06-04 11:08:57.000000",
                "timezone_type": 3,
                "timezone": "America\/Sao_Paulo"
            }
        }
    ]
}

Request

GET api/token/tokens

Auth\Api\revoke

Revoga uma CHAVE de API.

alt text

REQUISIÇÃO NÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api-app.iporto.com.br/api/token/revoke/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'token_id'=> 'quae',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X DELETE \
    "https://api-app.iporto.com.br/api/token/revoke/1?token_id=quae" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/token/revoke/1"
);

let params = {
    "token_id": "quae",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/token/revoke/1'
params = {
  'token_id': 'quae',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('DELETE', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {
        "id": "e534e5389eb529116c5defe6e799efc362ci500216d53864df09b84aa5906e97c3185bb2b8902212",
        "user_id": 1,
        "client_id": 1,
        "name": "API-MinhaAPI",
        "scopes": [],
        "revoked": true,
        "created_at": "2019-06-04 11:08:57",
        "updated_at": "2019-06-04 11:08:57",
        "expires_at": "2020-06-04 11:08:57"
    }
}

Request

DELETE api/token/revoke/{token_id}

Query Parameters

token_id  optional
ID DO TOKEN. Ex: e534e5389eb529116c5defe6e799efc362ci500216d53864df09b84aa5906e97c3185bb2b8902212

Auth\Guest

Auth\Guest\login

Efetue login com dados de E-MAIL e SENHA para gerar um novo Token de autenticação para resgatar informações relativas ao Usuário.

alt text

REQUISIÇÃO NÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api-app.iporto.com.br/api/login',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'json' => [
            'email' => 'ullam',
            'password' => 'aliquid',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X POST \
    "https://api-app.iporto.com.br/api/login" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"email":"ullam","password":"aliquid"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/login"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "email": "ullam",
    "password": "aliquid"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/login'
payload = {
    "email": "ullam",
    "password": "aliquid"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "data": {}
}

Request

POST api/login

Body Parameters

email  string
E-mail de login. Ex: dev@iporto.io

password  string
Senha de login.

Auth\Logout

Auth\Logout\logout

Revoga CHAVE ATUAL do usuário logado.

alt text

REQUISIÇÃO NÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api-app.iporto.com.br/api/logout',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X POST \
    "https://api-app.iporto.com.br/api/logout" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/logout"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/logout'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('POST', url, headers=headers)
response.json()

Request

POST api/logout

Auth\User

Gerenciamento de Usuário autenticado.

Auth\User\profile

Retorna informações completas da conta do Usuário que está autenticado.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/profile',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/profile" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/profile"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/profile'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 1,
        "name": "Dev",
        "email": "dev@iporto.io",
        "is_active": 1,
        "status": "cadastroAtivo",
        "last_action_at": "2019-05-28 17:11:51",
        "created_at": "2018-05-29 19:54:26",
        "updated_at": "2019-05-28 17:11:51",
        "deleted_at": null,
        "returned_at": "2019-05-28 17:12:08"
    }
}

Request

GET api/profile

Panel\Analytic\Report\Index

Gestão de Créditos do Serviço.

Panel\Analytic\Report\Index\index

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/analytic/report',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/analytic/report" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/analytic/report"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/analytic/report'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/analytic/report

Panel\Analytic\Report\Index\store

Gera um novo Report.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api-app.iporto.com.br/api/panel/analytic/report',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'json' => [
            'smtp_id' => 'optio',
            'account_id' => 'unde',
            'name' => 'Report Data One',
            'slug' => 'iporto:analytic:report:SendIndexDataBounce',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X POST \
    "https://api-app.iporto.com.br/api/panel/analytic/report" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"smtp_id":"optio","account_id":"unde","name":"Report Data One","slug":"iporto:analytic:report:SendIndexDataBounce"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/analytic/report"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "smtp_id": "optio",
    "account_id": "unde",
    "name": "Report Data One",
    "slug": "iporto:analytic:report:SendIndexDataBounce"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/analytic/report'
payload = {
    "smtp_id": "optio",
    "account_id": "unde",
    "name": "Report Data One",
    "slug": "iporto:analytic:report:SendIndexDataBounce"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "data": {}
}

Request

POST api/panel/analytic/report

Body Parameters

smtp_id  string optional
ID DO SMTP.

account_id  string optional
ID DA CONTA DE SMTP.

name  string
NOME DO RELATÓRIO.

slug  string
TIPO DE RELATÓRIO QUE SERÁ GERADO.

Panel\Analytic\Report\Index\index

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/analytic/report/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> 'libero',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/analytic/report/1?id=libero" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/analytic/report/1"
);

let params = {
    "id": "libero",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/analytic/report/1'
params = {
  'id': 'libero',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/analytic/report/{id}

Query Parameters

id  optional
string ID DO REPORT.

Panel\Credit\Credit

Gestão de Créditos do Serviço.

Panel\Credit\Credit\index

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/credit',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/credit" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/credit"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/credit'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/credit

Panel\Credit\Credit\availability

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/credit/availability',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/credit/availability" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/credit/availability"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/credit/availability'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/credit/availability

Panel\Credit\Credit\usage

Mostra os dados para report na Credit.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/credit/usage',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/credit/usage" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/credit/usage"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/credit/usage'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/credit/usage

Panel\Credit\Credit\graph

Mostra os dados para report na Credit.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/credit/graph',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/credit/graph" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/credit/graph"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/credit/graph'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/credit/graph

Panel\Credit\Credit\buy

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/credit/buy/1/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/credit/buy/1/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/credit/buy/1/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/credit/buy/1/1'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/credit/buy/{amount}/{type}

Panel\Credit\Credit\price

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/credit/price/1/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/credit/price/1/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/credit/price/1/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/credit/price/1/1'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/credit/price/{amount}/{type}

Panel\Limit\Limit

Limites de Uso e Criações de ítens no serviço.

Panel\Limit\index

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/limit',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/limit" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/limit"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/limit'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/limit

Panel\Notification\Configuration

Gerenciamento de Pkg: MARKETING. Email

Panel\Notification\Configuration\index

TODO: Descrição método.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/notification/configuration',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/notification/configuration" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/notification/configuration"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/notification/configuration'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "data": [
        {}
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

Request

GET api/panel/notification/configuration

Panel\Notification\Configuration\actions

TODO: Descrição método.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/notification/configuration/action',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/notification/configuration/action" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/notification/configuration/action"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/notification/configuration/action'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "data": [
        {}
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

Request

GET api/panel/notification/configuration/action

Panel\Notification\Configuration\store

Promove o cadastro de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api-app.iporto.com.br/api/panel/notification/configuration',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'json' => [
            'slug' => 'CREDIT_USAGE',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X POST \
    "https://api-app.iporto.com.br/api/panel/notification/configuration" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"slug":"CREDIT_USAGE"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/notification/configuration"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "slug": "CREDIT_USAGE"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/notification/configuration'
payload = {
    "slug": "CREDIT_USAGE"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "data": {}
}

Request

POST api/panel/notification/configuration

Body Parameters

slug  string
SLUG DE NOTIFICAÇÃO.

Panel\Notification\Configuration\show

Retorna um ITEM para visualização com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/notification/configuration/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/notification/configuration/1?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/notification/configuration/1"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/notification/configuration/1'
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/notification/configuration/{id}

Query Parameters

id 
ID DO ITEM.

Panel\Notification\Configuration\update

Promove a atualização de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api-app.iporto.com.br/api/panel/notification/configuration/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X PUT \
    "https://api-app.iporto.com.br/api/panel/notification/configuration/1?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/notification/configuration/1"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/notification/configuration/1'
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('PUT', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

PUT api/panel/notification/configuration/{id}

Query Parameters

id 
ID DO ITEM.

Panel\Notification\Configuration\destroy

Promove a remoção de um ITEM.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api-app.iporto.com.br/api/panel/notification/configuration',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X DELETE \
    "https://api-app.iporto.com.br/api/panel/notification/configuration?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/notification/configuration"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/notification/configuration'
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('DELETE', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

DELETE api/panel/notification/configuration

Query Parameters

id 
ID DO ITEM.

Panel\Pkg\Automation\Event\Event

Gerenciamento de Pkg: AUTOMAÇÕES.

Panel\Pkg\Automation\Event\Event\index

TODO: Descrição método.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/pkg/automation/event',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'search'=> 'illum',
            'status'=> 'ratione',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/pkg/automation/event?search=illum&status=ratione" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/automation/event"
);

let params = {
    "search": "illum",
    "status": "ratione",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/automation/event'
params = {
  'search': 'illum',
  'status': 'ratione',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": [],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

Request

GET api/panel/pkg/automation/event

Query Parameters

search  optional
CAMPO DE BUSCA POR NOME OU ID.

status  optional
CAMPO DE BUSCA POR STATUS.

Panel\Pkg\Automation\Event\Event\show

Retorna um ITEM para visualização com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/pkg/automation/event/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/pkg/automation/event/1?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/automation/event/1"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/automation/event/1'
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/pkg/automation/event/{id}

Query Parameters

id 
ID DO ITEM.

Panel\Pkg\Automation\Template\Template

Gerenciamento de Pkg: AUTOMAÇÕES.

Panel\Pkg\Automation\Template\Template\index

TODO: Descrição método.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/pkg/automation/template',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'search'=> 'soluta',
            'status'=> 'distinctio',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/pkg/automation/template?search=soluta&status=distinctio" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/automation/template"
);

let params = {
    "search": "soluta",
    "status": "distinctio",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/automation/template'
params = {
  'search': 'soluta',
  'status': 'distinctio',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": [],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

Request

GET api/panel/pkg/automation/template

Query Parameters

search  optional
CAMPO DE BUSCA POR NOME OU ID.

status  optional
CAMPO DE BUSCA POR STATUS.

Panel\Pkg\Automation\Template\Template\show

Retorna um ITEM para visualização com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/pkg/automation/template/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/pkg/automation/template/1?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/automation/template/1"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/automation/template/1'
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/pkg/automation/template/{id}

Query Parameters

id 
ID DO ITEM.

Panel\Pkg\Automation\Workflow\Contact\Contact

Gerenciamento de Pkg: AUTOMAÇÕES. Workflow

Panel\Pkg\Automation\Workflow\Workflow\index

TODO: Descrição método.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1/contact',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'search'=> 'quia',
            'status'=> 'molestiae',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1/contact?search=quia&status=molestiae" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1/contact"
);

let params = {
    "search": "quia",
    "status": "molestiae",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1/contact'
params = {
  'search': 'quia',
  'status': 'molestiae',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": [],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

Request

GET api/panel/pkg/automation/workflow/{workflow_id}/contact

Query Parameters

search  optional
CAMPO DE BUSCA POR NOME OU ID.

status  optional
CAMPO DE BUSCA POR STATUS.

Panel\Pkg\Automation\Workflow\Workflow\destroy

Promove a remoção de um ITEM.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1/contact/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X DELETE \
    "https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1/contact/1?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1/contact/1"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1/contact/1'
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('DELETE', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

DELETE api/panel/pkg/automation/workflow/{workflow_id}/contact/{id}

Query Parameters

id 
ID DO ITEM.

Panel\Pkg\Automation\Workflow\Flow

Gerenciamento de Pkg: AUTOMAÇÕES. Workflow

Panel\Pkg\Automation\Workflow\Flow\store

Promove o cadastro de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1/flow',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'workflow_id'=> '1',
        ],
        'json' => [
            'event_slug' => 'AddressbookContactSubscription',
            'event_data' => '"{}"',
            'flow_type' => 'neutral',
            'parent_id' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X POST \
    "https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1/flow?workflow_id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"event_slug":"AddressbookContactSubscription","event_data":"\"{}\"","flow_type":"neutral","parent_id":"1"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1/flow"
);

let params = {
    "workflow_id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "event_slug": "AddressbookContactSubscription",
    "event_data": "\"{}\"",
    "flow_type": "neutral",
    "parent_id": "1"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1/flow'
payload = {
    "event_slug": "AddressbookContactSubscription",
    "event_data": "\"{}\"",
    "flow_type": "neutral",
    "parent_id": "1"
}
params = {
  'workflow_id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('POST', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):


{
 "data": {
     "id": 1,
     "client_id": 1,
     "name": "Automação de Compra",
     "description": "-",
     "from_email": "dev@iporto.io",
     "from_name": "Frederido",
     "perform_run": "once_time",
     "status": "active",
     "created_at": "2019-06-18 18:51:45",
     "updated_at": "2019-06-18 18:51:45",
     "deleted_at": null,
     "display_at": "2019-06-18 18:51:45"
         "trigger": {
             "id": 1,
             "client_id": 2,
             "event_id": 1,
             "workflow_id": 1,
             "addressbook_id": 1,
             "object_id": null,
             "object_type": "",
             "trigger_type": "once_time",
             "name": "Gatilho por Nova Inscrição",
             "created_at": "2019-06-19 15:32:14",
             "updated_at": "2019-06-19 15:32:14",
             "display_at": "2019-06-19 17:01:19"
         }
 }
}

Request

POST api/panel/pkg/automation/workflow/{workflow_id}/flow

Query Parameters

workflow_id 
ID DO DA AUTOMAÇÃO.

Body Parameters

event_slug  string
NOME.

event_data  string
CONTEÚDO, JSON, DO FLUXO.

flow_type  string
TIPO DE FLUXO (positive,negative,neutral).

parent_id  string
ID DO FLUXO PAI.

Panel\Pkg\Automation\Workflow\Flow\show

Retorna um ITEM para visualização com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1/flow',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'workflow_id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1/flow?workflow_id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1/flow"
);

let params = {
    "workflow_id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1/flow'
params = {
  'workflow_id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 1,
        "name": "Automação de Compra",
        "description": "-",
        "from_email": "dev@iporto.io",
        "from_name": "Frederido",
        "perform_run": "once_time",
        "status": "active",
        "created_at": "2019-06-18 19:56:10",
        "updated_at": "2019-06-18 19:56:10",
        "deleted_at": null,
        "display_at": "2019-06-19 17:21:12",
        "trigger": {
            "id": 1,
            "client_id": 1,
            "event_id": 1,
            "workflow_id": 1,
            "addressbook_id": null,
            "object_id": null,
            "object_type": "",
            "event_slug": "AddressbookContactSubscription",
            "name": "Gatilho por Nova Inscrição",
            "created_at": "2019-06-19 17:20:49",
            "updated_at": "2019-06-19 17:20:49",
            "display_at": "2019-06-19 17:21:12"
        }
    }
}

Request

GET api/panel/pkg/automation/workflow/{workflow_id}/flow

Query Parameters

workflow_id 
ID DO DA AUTOMAÇÃO.

Panel\Pkg\Automation\Workflow\Flow\update

Promove a atualização de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1/flow/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'workflow_id'=> '1',
        ],
        'json' => [
            'addressbook_id' => '1',
            'object_id' => 'NULL',
            'object_type' => 'Panel\\Service\\Addressbook\\Contact',
            'name' => 'Gatilho por Nova Inscrição',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X PUT \
    "https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1/flow/1?workflow_id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"addressbook_id":"1","object_id":"NULL","object_type":"Panel\\Service\\Addressbook\\Contact","name":"Gatilho por Nova Inscri\u00e7\u00e3o"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1/flow/1"
);

let params = {
    "workflow_id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "addressbook_id": "1",
    "object_id": "NULL",
    "object_type": "Panel\\Service\\Addressbook\\Contact",
    "name": "Gatilho por Nova Inscri\u00e7\u00e3o"
}

fetch(url, {
    method: "PUT",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1/flow/1'
payload = {
    "addressbook_id": "1",
    "object_id": "NULL",
    "object_type": "Panel\\Service\\Addressbook\\Contact",
    "name": "Gatilho por Nova Inscri\u00e7\u00e3o"
}
params = {
  'workflow_id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('PUT', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 1,
        "name": "Automação de Compra",
        "description": "-",
        "from_email": "dev@iporto.io",
        "from_name": "Frederido",
        "perform_run": "once_time",
        "status": "active",
        "created_at": "2019-06-18 18:51:45",
        "updated_at": "2019-06-18 18:51:45",
        "deleted_at": null,
        "display_at": "2019-06-18 18:51:45"
    }
}

Request

PUT api/panel/pkg/automation/workflow/{workflow_id}/flow/{id}

Query Parameters

workflow_id 
ID DO DA AUTOMAÇÃO.

Body Parameters

addressbook_id  string optional
ID DA LISTA DE CONTATOS.

object_id  string optional
ID DO OBJETO RELACIONADO.

object_type  string optional
TIPO DO OBJETO RELACIONADO.

name  string
NOME DA TRIGGER.

Panel\Pkg\Automation\Workflow\Flow\destroy

Promove a remoção de um ITEM.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1/flow/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X DELETE \
    "https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1/flow/1?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1/flow/1"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1/flow/1'
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('DELETE', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 1,
        "name": "Automação de Compra",
        "description": "-",
        "from_email": "dev@iporto.io",
        "from_name": "Frederido",
        "perform_run": "once_time",
        "status": "active",
        "created_at": "2019-06-18 18:51:45",
        "updated_at": "2019-06-18 18:52:43",
        "deleted_at": {
            "date": "2019-06-18 18:52:43.511439",
            "timezone_type": 3,
            "timezone": "America\/Sao_Paulo"
        },
        "display_at": "2019-06-18 18:52:43"
    }
}

Request

DELETE api/panel/pkg/automation/workflow/{workflow_id}/flow/{id}

Query Parameters

id 
ID DO ITEM.

Panel\Pkg\Automation\Workflow\Workflow

Gerenciamento de Pkg: AUTOMAÇÕES. Workflow

Panel\Pkg\Automation\Workflow\Workflow\index

TODO: Descrição método.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/pkg/automation/workflow',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'search'=> 'nemo',
            'status'=> 'fugiat',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/pkg/automation/workflow?search=nemo&status=fugiat" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/automation/workflow"
);

let params = {
    "search": "nemo",
    "status": "fugiat",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/automation/workflow'
params = {
  'search': 'nemo',
  'status': 'fugiat',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": [
        {
            "id": 1,
            "client_id": 1,
            "smtp_account_id": 1,
            "name": "Automação de Compra",
            "description": "-",
            "perform_run": "once_time",
            "status": "active",
            "created_at": "2019-06-18 18:49:28",
            "updated_at": "2019-06-18 18:49:28",
            "deleted_at": null,
            "display_at": "2019-06-18 18:49:44"
        }
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

Request

GET api/panel/pkg/automation/workflow

Query Parameters

search  optional
CAMPO DE BUSCA POR NOME OU ID.

status  optional
CAMPO DE BUSCA POR STATUS.

Panel\Pkg\Automation\Workflow\Workflow\store

Promove o cadastro de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api-app.iporto.com.br/api/panel/pkg/automation/workflow',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'json' => [
            'smtp_account_id' => '1',
            'name' => 'Automação de Compra',
            'description' => '-',
            'perform_run' => 'once_time',
            'status' => 'active',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X POST \
    "https://api-app.iporto.com.br/api/panel/pkg/automation/workflow" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"smtp_account_id":"1","name":"Automa\u00e7\u00e3o de Compra","description":"-","perform_run":"once_time","status":"active"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/automation/workflow"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "smtp_account_id": "1",
    "name": "Automa\u00e7\u00e3o de Compra",
    "description": "-",
    "perform_run": "once_time",
    "status": "active"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/automation/workflow'
payload = {
    "smtp_account_id": "1",
    "name": "Automa\u00e7\u00e3o de Compra",
    "description": "-",
    "perform_run": "once_time",
    "status": "active"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 1,
        "smtp_account_id": 1,
        "name": "Automação de Compra",
        "description": "-",
        "perform_run": "once_time",
        "status": "active",
        "created_at": "2019-06-18 18:51:45",
        "updated_at": "2019-06-18 18:51:45",
        "deleted_at": null,
        "display_at": "2019-06-18 18:51:45"
    }
}

Request

POST api/panel/pkg/automation/workflow

Body Parameters

smtp_account_id  string
ID DA CONTA DE SMTP QUE SERÁ UTILIZADO PARA AUTENTICAR OS ENVIOS.

name  string
NOME.

description  string
DESCRIÇÃO.

perform_run  string
QUANDO SERÁ EXECUTADA AUTOMAÇÃO, POR CONTATO (once_time,multiple_times).

status  string
STATUS (draft,active,inactive).

Panel\Pkg\Automation\Workflow\Workflow\show

Retorna um ITEM para visualização com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1'
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 1,
        "smtp_account_id": 1,
        "name": "Automação de Compra",
        "description": "-",
        "perform_run": "once_time",
        "status": "active",
        "created_at": "2019-06-18 18:51:45",
        "updated_at": "2019-06-18 18:51:45",
        "deleted_at": null,
        "display_at": "2019-06-18 18:51:45"
    }
}

Request

GET api/panel/pkg/automation/workflow/{id}

Query Parameters

id 
ID DO ITEM.

Panel\Pkg\Automation\Workflow\Workflow\update

Promove a atualização de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
        'json' => [
            'smtp_account_id' => '1',
            'name' => 'Automação de Compra',
            'description' => '-',
            'perform_run' => 'once_time',
            'status' => 'active',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X PUT \
    "https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"smtp_account_id":"1","name":"Automa\u00e7\u00e3o de Compra","description":"-","perform_run":"once_time","status":"active"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "smtp_account_id": "1",
    "name": "Automa\u00e7\u00e3o de Compra",
    "description": "-",
    "perform_run": "once_time",
    "status": "active"
}

fetch(url, {
    method: "PUT",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1'
payload = {
    "smtp_account_id": "1",
    "name": "Automa\u00e7\u00e3o de Compra",
    "description": "-",
    "perform_run": "once_time",
    "status": "active"
}
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('PUT', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 1,
        "smtp_account_id": 1,
        "name": "Automação de Compra",
        "description": "-",
        "perform_run": "once_time",
        "status": "active",
        "created_at": "2019-06-18 18:51:45",
        "updated_at": "2019-06-18 18:51:45",
        "deleted_at": null,
        "display_at": "2019-06-18 18:51:45"
    }
}

Request

PUT api/panel/pkg/automation/workflow/{id}

Query Parameters

id 
ID DO ITEM.

Body Parameters

smtp_account_id  string
ID DA CONTA DE SMTP QUE SERÁ UTILIZADO PARA AUTENTICAR OS ENVIOS.

name  string
NOME.

description  string
DESCRIÇÃO.

perform_run  string
QUANDO SERÁ EXECUTADA AUTOMAÇÃO, POR CONTATO (once_time,multiple_times).

status  string
STATUS (draft,active,inactive).

Panel\Pkg\Automation\Workflow\Workflow\destroy

Promove a remoção de um ITEM.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X DELETE \
    "https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/automation/workflow/1'
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('DELETE', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 1,
        "smtp_account_id": 1,
        "name": "Automação de Compra",
        "description": "-",
        "perform_run": "once_time",
        "status": "active",
        "created_at": "2019-06-18 18:51:45",
        "updated_at": "2019-06-18 18:52:43",
        "deleted_at": {
            "date": "2019-06-18 18:52:43.511439",
            "timezone_type": 3,
            "timezone": "America\/Sao_Paulo"
        },
        "display_at": "2019-06-18 18:52:43"
    }
}

Request

DELETE api/panel/pkg/automation/workflow/{id}

Query Parameters

id 
ID DO ITEM.

Panel\Pkg\EmailValidation\Upload\File

Gerenciamento de Pkg: VALIDADOR DE EMAILS. File

Panel\Pkg\EmailValidation\Upload\File\index

TODO: Descrição método.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/pkg/email-validation/upload',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'search'=> 'voluptatem',
            'status'=> 'modi',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/pkg/email-validation/upload?search=voluptatem&status=modi" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/email-validation/upload"
);

let params = {
    "search": "voluptatem",
    "status": "modi",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/email-validation/upload'
params = {
  'search': 'voluptatem',
  'status': 'modi',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": [
        {}
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

Request

GET api/panel/pkg/email-validation/upload

Query Parameters

search  optional
CAMPO DE BUSCA POR NOME OU ID.

status  optional
CAMPO DE BUSCA POR STATUS.

Panel\Pkg\EmailValidation\Upload\File\store

Promove o cadastro de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api-app.iporto.com.br/api/panel/pkg/email-validation/upload',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'json' => [
            'addressbook_id' => '1',
            'name' => 'NPS nossa Empresa',
            'description' => 'iure',
            'company' => 'est',
            'is_public' => 'yes',
            'is_toten' => 'yes',
            'status' => 'active',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X POST \
    "https://api-app.iporto.com.br/api/panel/pkg/email-validation/upload" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"addressbook_id":"1","name":"NPS nossa Empresa","description":"iure","company":"est","is_public":"yes","is_toten":"yes","status":"active"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/email-validation/upload"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "addressbook_id": "1",
    "name": "NPS nossa Empresa",
    "description": "iure",
    "company": "est",
    "is_public": "yes",
    "is_toten": "yes",
    "status": "active"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/email-validation/upload'
payload = {
    "addressbook_id": "1",
    "name": "NPS nossa Empresa",
    "description": "iure",
    "company": "est",
    "is_public": "yes",
    "is_toten": "yes",
    "status": "active"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "data": {}
}

Request

POST api/panel/pkg/email-validation/upload

Body Parameters

addressbook_id  string
ID DA PESQUISA NPS.

name  string
NOME.

description  string optional
DESCRIÇÃO.

company  string optional
NOME DA EMPRESA.

is_public  string optional
SE A PESQUISA É PUBLICA (yes,no).

is_toten  string optional
SE A PESQUISA SERÁ APLICADA EM UM TOTEN (yes,no).

status  string
STATUS (draft,active,inactive).

Panel\Pkg\EmailValidation\Upload\Validation\Validation

Gerenciamento de Pkg: VALIDADOR DE EMAILS. Validação

Panel\Pkg\EmailValidation\Upload\Validation\Validation\show

Retorna um ITEM para visualização com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/pkg/email-validation/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/pkg/email-validation/1?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/email-validation/1"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/email-validation/1'
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/pkg/email-validation/{upload_file_id}

Query Parameters

id 
ID DO ITEM.

Panel\Pkg\EmailValidation\Upload\Validation\Validation\show

Retorna um ITEM para visualização com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/pkg/email-validation/1/contact',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/pkg/email-validation/1/contact?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/email-validation/1/contact"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/email-validation/1/contact'
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/pkg/email-validation/{upload_file_id}/contact

Query Parameters

id 
ID DO ITEM.

Panel\Pkg\EmailValidation\Upload\Validation\Validation\show

Retorna um ITEM para visualização com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api-app.iporto.com.br/api/panel/pkg/email-validation/1/again/if/unknow',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X POST \
    "https://api-app.iporto.com.br/api/panel/pkg/email-validation/1/again/if/unknow?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/email-validation/1/again/if/unknow"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/email-validation/1/again/if/unknow'
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('POST', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

POST api/panel/pkg/email-validation/{upload_file_id}/again/if/unknow

Query Parameters

id 
ID DO ITEM.

Panel\Pkg\Form\Content\Field

Gerenciamento de Pkg: FORMULÁRIOS. Fields

Panel\Pkg\Form\Content\Field\store

Promove o cadastro de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api-app.iporto.com.br/api/panel/pkg/form/form/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'form_id'=> '1',
        ],
        'json' => [
            'label' => 'Qual seu nome?',
            'required' => 'no',
            'field_type' => 'text',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X POST \
    "https://api-app.iporto.com.br/api/panel/pkg/form/form/1?form_id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"label":"Qual seu nome?","required":"no","field_type":"text"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/form/form/1"
);

let params = {
    "form_id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "label": "Qual seu nome?",
    "required": "no",
    "field_type": "text"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/form/form/1'
payload = {
    "label": "Qual seu nome?",
    "required": "no",
    "field_type": "text"
}
params = {
  'form_id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('POST', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

POST api/panel/pkg/form/form/{form_id}

Query Parameters

form_id 
ID DO FORMULÁRIO QUE RECEBERÁ O FIELD.

Body Parameters

label  string
LABEL/DESCRIÇÃO DO FIELD.

required  string
SE O FIELD É REQUERIDO OU NÃO.

field_type  string
TIPO DE FIELD (text,textarea,dropdown,email,phone,date,number,upload,payment,website,optionscale,rating).

Panel\Pkg\Form\Content\Field\show

Retorna um ITEM para visualização com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/pkg/form/form/1/field/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'form_id'=> '1',
            'id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/pkg/form/form/1/field/1?form_id=1&id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/form/form/1/field/1"
);

let params = {
    "form_id": "1",
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/form/form/1/field/1'
params = {
  'form_id': '1',
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/pkg/form/form/{form_id}/field/{id}

Query Parameters

form_id 
ID DO FORMULÁRIO QUE RECEBERÁ O FIELD.

id 
ID DO ITEM.

Panel\Pkg\Form\Content\Field\update

Promove a atualização de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api-app.iporto.com.br/api/panel/pkg/form/form/1/field/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'form_id'=> '1',
            'id'=> '1',
        ],
        'json' => [
            'label' => 'Qual seu nome?',
            'required' => 'no',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X PUT \
    "https://api-app.iporto.com.br/api/panel/pkg/form/form/1/field/1?form_id=1&id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"label":"Qual seu nome?","required":"no"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/form/form/1/field/1"
);

let params = {
    "form_id": "1",
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "label": "Qual seu nome?",
    "required": "no"
}

fetch(url, {
    method: "PUT",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/form/form/1/field/1'
payload = {
    "label": "Qual seu nome?",
    "required": "no"
}
params = {
  'form_id': '1',
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('PUT', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

PUT api/panel/pkg/form/form/{form_id}/field/{id}

Query Parameters

form_id 
ID DO FORMULÁRIO QUE RECEBERÁ O FIELD.

id 
ID DO ITEM.

Body Parameters

label  string
LABEL/DESCRIÇÃO DO FIELD.

required  string
SE O FIELD É REQUERIDO OU NÃO.

Panel\Pkg\Form\Content\Field\destroy

Promove a remoção de um ITEM.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api-app.iporto.com.br/api/panel/pkg/form/form/1/field/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'form_id'=> '1',
            'id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X DELETE \
    "https://api-app.iporto.com.br/api/panel/pkg/form/form/1/field/1?form_id=1&id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/form/form/1/field/1"
);

let params = {
    "form_id": "1",
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/form/form/1/field/1'
params = {
  'form_id': '1',
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('DELETE', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

DELETE api/panel/pkg/form/form/{form_id}/field/{id}

Query Parameters

form_id 
ID DO FORMULÁRIO QUE RECEBERÁ O FIELD.

id 
ID DO ITEM.

Panel\Pkg\Form\Form

Gerenciamento de Pkg: FORMULÁRIOS. Form

Panel\Pkg\Form\Form\index

TODO: Descrição método.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/pkg/form/form',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'search'=> 'possimus',
            'status'=> 'odit',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/pkg/form/form?search=possimus&status=odit" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/form/form"
);

let params = {
    "search": "possimus",
    "status": "odit",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/form/form'
params = {
  'search': 'possimus',
  'status': 'odit',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": [
        {
            "id": 1,
            "client_id": 1,
            "addressbook_id": 1,
            "name": "Formulário do E-book",
            "configurations": "{}",
            "style": "EKdU8OxA3Bt26z0S",
            "status": "active",
            "form_type": "inline",
            "created_at": "2019-07-17 15:35:57",
            "updated_at": "2019-07-17 15:35:57",
            "deleted_at": null,
            "display_at": "2019-07-17 15:35:58"
        }
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

Request

GET api/panel/pkg/form/form

Query Parameters

search  optional
CAMPO DE BUSCA POR NOME OU ID.

status  optional
CAMPO DE BUSCA POR STATUS.

Panel\Pkg\Form\Form\store

Promove o cadastro de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api-app.iporto.com.br/api/panel/pkg/form/form',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'json' => [
            'addressbook_id' => '1',
            'name' => 'Formulário do E-book',
            'configurations' => '{"pkg_form_content_property_title":"Receba nossas Ofertas","pkg_form_content_property_description":"Fique por dentro das novidades. Assine nossa lista de transmissão e fique sabendo antes de todos.","pkg_form_content_property_submit":"Inscrever-se"}',
            'style' => 'aliquam',
            'status' => 'active',
            'form_type' => 'inline',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X POST \
    "https://api-app.iporto.com.br/api/panel/pkg/form/form" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"addressbook_id":"1","name":"Formul\u00e1rio do E-book","configurations":"{\"pkg_form_content_property_title\":\"Receba nossas Ofertas\",\"pkg_form_content_property_description\":\"Fique por dentro das novidades. Assine nossa lista de transmiss\u00e3o e fique sabendo antes de todos.\",\"pkg_form_content_property_submit\":\"Inscrever-se\"}","style":"aliquam","status":"active","form_type":"inline"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/form/form"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "addressbook_id": "1",
    "name": "Formul\u00e1rio do E-book",
    "configurations": "{\"pkg_form_content_property_title\":\"Receba nossas Ofertas\",\"pkg_form_content_property_description\":\"Fique por dentro das novidades. Assine nossa lista de transmiss\u00e3o e fique sabendo antes de todos.\",\"pkg_form_content_property_submit\":\"Inscrever-se\"}",
    "style": "aliquam",
    "status": "active",
    "form_type": "inline"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/form/form'
payload = {
    "addressbook_id": "1",
    "name": "Formul\u00e1rio do E-book",
    "configurations": "{\"pkg_form_content_property_title\":\"Receba nossas Ofertas\",\"pkg_form_content_property_description\":\"Fique por dentro das novidades. Assine nossa lista de transmiss\u00e3o e fique sabendo antes de todos.\",\"pkg_form_content_property_submit\":\"Inscrever-se\"}",
    "style": "aliquam",
    "status": "active",
    "form_type": "inline"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 1,
        "addressbook_id": 1,
        "name": "Formulário do E-book",
        "configurations": "{}",
        "style": "EKdU8OxA3Bt26z0S",
        "status": "active",
        "form_type": "inline",
        "created_at": "2019-07-17 15:35:57",
        "updated_at": "2019-07-17 15:35:57",
        "deleted_at": null,
        "display_at": "2019-07-17 15:35:58"
    }
}

Request

POST api/panel/pkg/form/form

Body Parameters

addressbook_id  string
ID DA CONTA LISTA DE CONTATOS QUE RECEBERÁ OS CONTATOS.

name  string
NOME.

configurations  string optional
JSON COM CONFIGURAÇÕES DO FORMULÁRIO.

style  string optional
CSS/FOLHA DE ESTILO PARA APLICAR AO FORMULÁRIO.

status  string
STATUS (draft,active,inactive).

form_type  string
TIPO DE FORMULÁRIO (inline,popup).

Panel\Pkg\Form\Form\show

Retorna um ITEM para visualização com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/pkg/form/form/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/pkg/form/form/1?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/form/form/1"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/form/form/1'
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 1,
        "addressbook_id": 1,
        "name": "Formulário do E-book",
        "configurations": "{}",
        "style": "EKdU8OxA3Bt26z0S",
        "status": "active",
        "form_type": "inline",
        "created_at": "2019-07-17 15:35:57",
        "updated_at": "2019-07-17 15:35:57",
        "deleted_at": null,
        "display_at": "2019-07-17 15:35:58"
    }
}

Request

GET api/panel/pkg/form/form/{id}

Query Parameters

id 
ID DO ITEM.

Panel\Pkg\Form\Form\update

Promove a atualização de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api-app.iporto.com.br/api/panel/pkg/form/form/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
        'json' => [
            'addressbook_id' => '1',
            'name' => 'Formulário do E-book',
            'configurations' => '{"pkg_form_content_property_title":"Receba nossas Ofertas","pkg_form_content_property_description":"Fique por dentro das novidades. Assine nossa lista de transmissão e fique sabendo antes de todos.","pkg_form_content_property_submit":"Inscrever-se"}',
            'style' => 'et',
            'status' => 'active',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X PUT \
    "https://api-app.iporto.com.br/api/panel/pkg/form/form/1?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"addressbook_id":"1","name":"Formul\u00e1rio do E-book","configurations":"{\"pkg_form_content_property_title\":\"Receba nossas Ofertas\",\"pkg_form_content_property_description\":\"Fique por dentro das novidades. Assine nossa lista de transmiss\u00e3o e fique sabendo antes de todos.\",\"pkg_form_content_property_submit\":\"Inscrever-se\"}","style":"et","status":"active"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/form/form/1"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "addressbook_id": "1",
    "name": "Formul\u00e1rio do E-book",
    "configurations": "{\"pkg_form_content_property_title\":\"Receba nossas Ofertas\",\"pkg_form_content_property_description\":\"Fique por dentro das novidades. Assine nossa lista de transmiss\u00e3o e fique sabendo antes de todos.\",\"pkg_form_content_property_submit\":\"Inscrever-se\"}",
    "style": "et",
    "status": "active"
}

fetch(url, {
    method: "PUT",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/form/form/1'
payload = {
    "addressbook_id": "1",
    "name": "Formul\u00e1rio do E-book",
    "configurations": "{\"pkg_form_content_property_title\":\"Receba nossas Ofertas\",\"pkg_form_content_property_description\":\"Fique por dentro das novidades. Assine nossa lista de transmiss\u00e3o e fique sabendo antes de todos.\",\"pkg_form_content_property_submit\":\"Inscrever-se\"}",
    "style": "et",
    "status": "active"
}
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('PUT', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 1,
        "addressbook_id": 1,
        "name": "Formulário do E-book",
        "configurations": "{}",
        "style": "EKdU8OxA3Bt26z0S",
        "status": "active",
        "form_type": "inline",
        "created_at": "2019-07-17 15:35:57",
        "updated_at": "2019-07-17 15:35:57",
        "deleted_at": null,
        "display_at": "2019-07-17 15:35:58"
    }
}

Request

PUT api/panel/pkg/form/form/{id}

Query Parameters

id 
ID DO ITEM.

Body Parameters

addressbook_id  string
ID DA CONTA LISTA DE CONTATOS QUE RECEBERÁ OS CONTATOS.

name  string
NOME.

configurations  string optional
JSON COM CONFIGURAÇÕES DO FORMULÁRIO.

style  string optional
CSS/FOLHA DE ESTILO PARA APLICAR AO FORMULÁRIO.

status  string
STATUS (draft,active,inactive).

Panel\Pkg\Form\Form\destroy

Promove a remoção de um ITEM.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api-app.iporto.com.br/api/panel/pkg/form/form/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X DELETE \
    "https://api-app.iporto.com.br/api/panel/pkg/form/form/1?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/form/form/1"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/form/form/1'
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('DELETE', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 1,
        "addressbook_id": 1,
        "name": "Formulário do E-book",
        "configurations": "{}",
        "style": "EKdU8OxA3Bt26z0S",
        "status": "active",
        "form_type": "inline",
        "created_at": "2019-07-17 15:42:51",
        "updated_at": "2019-07-17 15:43:13",
        "deleted_at": {
            "date": "2019-07-17 15:43:13.396007",
            "timezone_type": 3,
            "timezone": "America\/Sao_Paulo"
        },
        "display_at": "2019-07-17 15:43:14"
    }
}

Request

DELETE api/panel/pkg/form/form/{id}

Query Parameters

id 
ID DO ITEM.

Panel\Pkg\Form\Form\index

TODO: Descrição método.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/pkg/form/form/1/contact',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/pkg/form/form/1/contact?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/form/form/1/contact"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/form/form/1/contact'
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": [
        {}
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

Request

GET api/panel/pkg/form/form/{id}/contact

Query Parameters

id 
ID DO ITEM.

Panel\Pkg\Form\Page\Thankyou

Gerenciamento de Pkg: FORMULÁRIOS. Page Thankyou

api/panel/pkg/form/form/{form_id}/page/thankyou/{id}

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api-app.iporto.com.br/api/panel/pkg/form/form/1/page/thankyou/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X PUT \
    "https://api-app.iporto.com.br/api/panel/pkg/form/form/1/page/thankyou/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/form/form/1/page/thankyou/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/form/form/1/page/thankyou/1'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Request

PUT api/panel/pkg/form/form/{form_id}/page/thankyou/{id}

Panel\Pkg\Marketing\Email\Campaign\Campaign

Gerenciamento de Pkg: MARKETING. Email

Panel\Pkg\Marketing\Email\Campaign\Campaign\index

TODO: Descrição método.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'search'=> 'et',
            'status'=> 'eligendi',
            'campaign_type'=> 'et',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign?search=et&status=eligendi&campaign_type=et" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign"
);

let params = {
    "search": "et",
    "status": "eligendi",
    "campaign_type": "et",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign'
params = {
  'search': 'et',
  'status': 'eligendi',
  'campaign_type': 'et',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": [
        {
            "id": 1,
            "client_id": 1,
            "template_id": 1,
            "smtp_account_id": 1,
            "name": "Campanha de Automação",
            "subject": "Não perca esta oportunidade!",
            "from_name": "Frederico",
            "reply_to": "dev@iporto.io",
            "content_html": "Pensando mais a longo prazo, o comprometimento entre as equipes causa impacto indireto na reavaliação do sistema de participação geral.",
            "status": "active",
            "campaign_type": "automation",
            "created_at": "2019-06-24 19:49:33",
            "updated_at": "2019-06-24 19:49:33",
            "deleted_at": null,
            "display_at": "2019-06-24 19:52:46"
        }
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

Request

GET api/panel/pkg/marketing/email/campaign

Query Parameters

search  optional
CAMPO DE BUSCA POR NOME OU ID.

status  optional
CAMPO DE BUSCA POR STATUS.

campaign_type  optional
CAMPO DE BUSCA POR CAMPAIGN TYPE.

Panel\Pkg\Marketing\Email\Campaign\Campaign\store

Promove o cadastro de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'json' => [
            'template_id' => '1',
            'smtp_account_id' => '1',
            'name' => 'Campanha de Automação',
            'subject' => 'Não perca esta oportunidade!',
            'from_name' => 'Frederico',
            'reply_to' => 'dev@iporto.io',
            'content_html' => 'Pensando mais a longo prazo, o comprometimento entre as equipes causa impacto indireto na reavaliação do sistema de participação geral.',
            'status' => 'active',
            'campaign_type' => 'automation',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X POST \
    "https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"template_id":"1","smtp_account_id":"1","name":"Campanha de Automa\u00e7\u00e3o","subject":"N\u00e3o perca esta oportunidade!","from_name":"Frederico","reply_to":"dev@iporto.io","content_html":"Pensando mais a longo prazo, o comprometimento entre as equipes causa impacto indireto na reavalia\u00e7\u00e3o do sistema de participa\u00e7\u00e3o geral.","status":"active","campaign_type":"automation"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "template_id": "1",
    "smtp_account_id": "1",
    "name": "Campanha de Automa\u00e7\u00e3o",
    "subject": "N\u00e3o perca esta oportunidade!",
    "from_name": "Frederico",
    "reply_to": "dev@iporto.io",
    "content_html": "Pensando mais a longo prazo, o comprometimento entre as equipes causa impacto indireto na reavalia\u00e7\u00e3o do sistema de participa\u00e7\u00e3o geral.",
    "status": "active",
    "campaign_type": "automation"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign'
payload = {
    "template_id": "1",
    "smtp_account_id": "1",
    "name": "Campanha de Automa\u00e7\u00e3o",
    "subject": "N\u00e3o perca esta oportunidade!",
    "from_name": "Frederico",
    "reply_to": "dev@iporto.io",
    "content_html": "Pensando mais a longo prazo, o comprometimento entre as equipes causa impacto indireto na reavalia\u00e7\u00e3o do sistema de participa\u00e7\u00e3o geral.",
    "status": "active",
    "campaign_type": "automation"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 1,
        "template_id": 1,
        "smtp_account_id": 1,
        "name": "Campanha de Automação",
        "subject": "Não perca esta oportunidade!",
        "from_name": "Frederico",
        "reply_to": "dev@iporto.io",
        "content_html": "Pensando mais a longo prazo, o comprometimento entre as equipes causa impacto indireto na reavaliação do sistema de participação geral.",
        "status": "active",
        "campaign_type": "automation",
        "created_at": "2019-06-24 19:49:33",
        "updated_at": "2019-06-24 19:49:33",
        "deleted_at": null,
        "display_at": "2019-06-24 19:49:34"
    }
}

Request

POST api/panel/pkg/marketing/email/campaign

Body Parameters

template_id  string optional
ID DO TEMPLATE DE CAMPANHA.

smtp_account_id  string
ID DA CONTA DE SMTP QUE SERÁ UTILIZADO PARA AUTENTICAR OS ENVIOS.

name  string
NOME DA CAMPANHA USADO PARA CONTROLE INTERNO.

subject  string
ASSUNTO DA CAMPANHA.

from_name  string
NOME USADO COMO FROM DA CAMPANHA.

reply_to  string
E-MAIL QUE RECEBERÁ AS RESPOSTAS DOS E-MAILS.

content_html  string optional
CONTEÚDO DA CAMPANHA.

status  string
STATUS (draft,active,inactive).

campaign_type  string
TIPO DE CAMPANHA (regular,plaintext,variate,automation).

Panel\Pkg\Marketing\Email\Campaign\Campaign\replicate

Replica/Duplica uma campanha.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/replicate',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X POST \
    "https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/replicate?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/replicate"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/replicate'
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('POST', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

POST api/panel/pkg/marketing/email/campaign/{id}/replicate

Query Parameters

id 
ID DO ITEM.

Panel\Pkg\Marketing\Email\Campaign\Campaign\show

Retorna um ITEM para visualização com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1'
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 1,
        "template_id": 1,
        "smtp_account_id": 1,
        "name": "Campanha de Automação",
        "subject": "Não perca esta oportunidade!",
        "from_name": "Frederico",
        "reply_to": "dev@iporto.io",
        "content_html": "Pensando mais a longo prazo, o comprometimento entre as equipes causa impacto indireto na reavaliação do sistema de participação geral.",
        "status": "active",
        "campaign_type": "automation",
        "created_at": "2019-06-24 19:49:33",
        "updated_at": "2019-06-24 19:49:33",
        "deleted_at": null,
        "display_at": "2019-06-24 19:49:34"
    }
}

Request

GET api/panel/pkg/marketing/email/campaign/{id}

Query Parameters

id 
ID DO ITEM.

Panel\Pkg\Marketing\Email\Campaign\Campaign\update

Promove a atualização de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
        'json' => [
            'template_id' => '1',
            'smtp_account_id' => '1',
            'name' => 'Campanha de Automação',
            'subject' => 'Não perca esta oportunidade!',
            'from_name' => 'Frederico',
            'reply_to' => 'dev@iporto.io',
            'content_html' => 'Pensando mais a longo prazo, o comprometimento entre as equipes causa impacto indireto na reavaliação do sistema de participação geral.',
            'status' => 'active',
            'campaign_type' => 'automation',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X PUT \
    "https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"template_id":"1","smtp_account_id":"1","name":"Campanha de Automa\u00e7\u00e3o","subject":"N\u00e3o perca esta oportunidade!","from_name":"Frederico","reply_to":"dev@iporto.io","content_html":"Pensando mais a longo prazo, o comprometimento entre as equipes causa impacto indireto na reavalia\u00e7\u00e3o do sistema de participa\u00e7\u00e3o geral.","status":"active","campaign_type":"automation"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "template_id": "1",
    "smtp_account_id": "1",
    "name": "Campanha de Automa\u00e7\u00e3o",
    "subject": "N\u00e3o perca esta oportunidade!",
    "from_name": "Frederico",
    "reply_to": "dev@iporto.io",
    "content_html": "Pensando mais a longo prazo, o comprometimento entre as equipes causa impacto indireto na reavalia\u00e7\u00e3o do sistema de participa\u00e7\u00e3o geral.",
    "status": "active",
    "campaign_type": "automation"
}

fetch(url, {
    method: "PUT",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1'
payload = {
    "template_id": "1",
    "smtp_account_id": "1",
    "name": "Campanha de Automa\u00e7\u00e3o",
    "subject": "N\u00e3o perca esta oportunidade!",
    "from_name": "Frederico",
    "reply_to": "dev@iporto.io",
    "content_html": "Pensando mais a longo prazo, o comprometimento entre as equipes causa impacto indireto na reavalia\u00e7\u00e3o do sistema de participa\u00e7\u00e3o geral.",
    "status": "active",
    "campaign_type": "automation"
}
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('PUT', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 1,
        "template_id": 1,
        "smtp_account_id": 1,
        "name": "Campanha de Automação",
        "subject": "Não perca esta oportunidade!",
        "from_email": "dev@iporto.io",
        "from_name": "Frederico",
        "reply_to": "dev@iporto.io",
        "content_html": "Pensando mais a longo prazo, o comprometimento entre as equipes causa impacto indireto na reavaliação do sistema de participação geral.",
        "status": "active",
        "campaign_type": "automation",
        "created_at": "2019-06-24 19:49:33",
        "updated_at": "2019-06-24 19:49:33",
        "deleted_at": null,
        "display_at": "2019-06-24 19:49:34"
    }
}

Request

PUT api/panel/pkg/marketing/email/campaign/{id}

Query Parameters

id 
ID DO ITEM.

Body Parameters

template_id  string optional
ID DO TEMPLATE DE CAMPANHA.

smtp_account_id  string
ID DA CONTA DE SMTP QUE SERÁ UTILIZADO PARA AUTENTICAR OS ENVIOS.

name  string
NOME DA CAMPANHA USADO PARA CONTROLE INTERNO.

subject  string
ASSUNTO DA CAMPANHA.

from_name  string
NOME USADO COMO FROM DA CAMPANHA.

reply_to  string
E-MAIL QUE RECEBERÁ AS RESPOSTAS DOS E-MAILS.

content_html  string optional
CONTEÚDO DA CAMPANHA.

status  string
STATUS (draft,active,inactive).

campaign_type  string
TIPO DE CAMPANHA (regular,plaintext,variate,automation).

Panel\Pkg\Marketing\Email\Campaign\Campaign\template

Atualiza o template de uma campanha.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/template',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
        'json' => [
            'template_id' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X PUT \
    "https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/template?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"template_id":"1"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/template"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "template_id": "1"
}

fetch(url, {
    method: "PUT",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/template'
payload = {
    "template_id": "1"
}
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('PUT', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 1,
        "template_id": 1,
        "smtp_account_id": 1,
        "name": "Campanha de Automação",
        "subject": "Não perca esta oportunidade!",
        "from_email": "dev@iporto.io",
        "from_name": "Frederico",
        "reply_to": "dev@iporto.io",
        "content_html": "Pensando mais a longo prazo, o comprometimento entre as equipes causa impacto indireto na reavaliação do sistema de participação geral.",
        "status": "active",
        "campaign_type": "automation",
        "created_at": "2019-06-24 19:49:33",
        "updated_at": "2019-06-24 19:49:33",
        "deleted_at": null,
        "display_at": "2019-06-24 19:49:34"
    }
}

Request

PUT api/panel/pkg/marketing/email/campaign/{id}/template

Query Parameters

id 
ID DO ITEM.

Body Parameters

template_id  string
ID DO TEMPLATE DE CAMPANHA.

Panel\Pkg\Marketing\Email\Campaign\Campaign\destroy

Promove a remoção de um ITEM.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X DELETE \
    "https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1'
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('DELETE', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 1,
        "template_id": 1,
        "smtp_account_id": 1,
        "name": "Campanha de Automação 2",
        "subject": "Não perca esta oportunidade!",
        "from_name": "Frederico",
        "reply_to": "dev@iporto.io",
        "content_html": "Pensando mais a longo prazo, o comprometimento entre as equipes causa impacto indireto na reavaliação do sistema de participação geral.",
        "status": "active",
        "campaign_type": "automation",
        "created_at": "2019-06-24 19:50:26",
        "updated_at": "2019-06-24 19:50:34",
        "deleted_at": {
            "date": "2019-06-24 19:50:34.218945",
            "timezone_type": 3,
            "timezone": "America\/Sao_Paulo"
        },
        "display_at": "2019-06-24 19:50:34"
    }
}

Request

DELETE api/panel/pkg/marketing/email/campaign/{id}

Query Parameters

id 
ID DO ITEM.

Panel\Pkg\Marketing\Email\Campaign\Campaign\test

Faz o envio de um Teste para o E-mail selecionado visualizar a campanha.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/test',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
        'json' => [
            'recipients' => 'frederido@iporto.io',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X POST \
    "https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/test?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"recipients":"frederido@iporto.io"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/test"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "recipients": "frederido@iporto.io"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/test'
payload = {
    "recipients": "frederido@iporto.io"
}
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('POST', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

POST api/panel/pkg/marketing/email/campaign/{id}/test

Query Parameters

id 
ID DO ITEM.

Body Parameters

recipients  string
E-MAIL DE QUEM DEVE RECEBER A CAMPANHA DE TESTE.

Panel\Pkg\Marketing\Email\Campaign\Campaign\action

TODO: Descrição método.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/action',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/action" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/action"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/action'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "data": [
        {}
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

Request

GET api/panel/pkg/marketing/email/campaign/action

Panel\Pkg\Marketing\Email\Campaign\Dispatch\Schedule

Gerenciamento de Pkg: MARKETING. Email

Panel\Pkg\Marketing\Email\Campaign\Dispatch\Schedule\preview_contacts_count

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/preview_contacts_count',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'campaign_id'=> '1',
        ],
        'json' => [
            'filter_by_email_sending_status' => 'any',
            'filter_by_engagement' => '1',
            'filter_by_openings' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/preview_contacts_count?campaign_id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"filter_by_email_sending_status":"any","filter_by_engagement":"1","filter_by_openings":"1"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/preview_contacts_count"
);

let params = {
    "campaign_id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "filter_by_email_sending_status": "any",
    "filter_by_engagement": "1",
    "filter_by_openings": "1"
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/preview_contacts_count'
payload = {
    "filter_by_email_sending_status": "any",
    "filter_by_engagement": "1",
    "filter_by_openings": "1"
}
params = {
  'campaign_id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/pkg/marketing/email/campaign/{campaign_id}/preview_contacts_count

Query Parameters

campaign_id  optional
string required ID DA CAMPANHA.

Body Parameters

filter_by_email_sending_status  string
SITUAÇÃO CADASTRAL 'any','optin', 'double_optin', 'lead'.

filter_by_engagement  string
ENGAJAMENTO.

filter_by_openings  string
ABERTURAS.

Panel\Pkg\Marketing\Email\Campaign\Dispatch\Schedule\store

Promove o início de uma campanha.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/schedule',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'campaign_id'=> '1',
        ],
        'json' => [
            'send_at' => '1',
            'plan_type' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X POST \
    "https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/schedule?campaign_id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"send_at":"1","plan_type":"1"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/schedule"
);

let params = {
    "campaign_id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "send_at": "1",
    "plan_type": "1"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/schedule'
payload = {
    "send_at": "1",
    "plan_type": "1"
}
params = {
  'campaign_id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('POST', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

POST api/panel/pkg/marketing/email/campaign/{campaign_id}/schedule

Query Parameters

campaign_id  optional
string required ID DA CAMPANHA.

Body Parameters

send_at  string
DATA EM QUE UM ENVIO DEVE SER INICIADO.

plan_type  string
TIPO DE PLANO QUE SERÁ USADO PARA PROCESSAR O ENVIO.

Panel\Pkg\Marketing\Email\Campaign\Dispatch\Schedule\destroy

Promove a remoção de um ITEM.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/schedule/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X DELETE \
    "https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/schedule/1?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/schedule/1"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/schedule/1'
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('DELETE', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

DELETE api/panel/pkg/marketing/email/campaign/{campaign_id}/schedule/{id}

Query Parameters

id 
ID DO ITEM.

Panel\Pkg\Marketing\Email\Campaign\Recipient

Gerenciamento de Pkg: MARKETING. Email

Panel\Pkg\Marketing\Email\Campaign\Recipient\update

Promove a atualização de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/recipient/addressbook/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'campaign_id'=> '1',
            'addressbook_id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X PUT \
    "https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/recipient/addressbook/1?campaign_id=1&addressbook_id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/recipient/addressbook/1"
);

let params = {
    "campaign_id": "1",
    "addressbook_id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/1/recipient/addressbook/1'
params = {
  'campaign_id': '1',
  'addressbook_id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('PUT', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

PUT api/panel/pkg/marketing/email/campaign/{campaign_id}/recipient/addressbook/{addressbook_id}

Query Parameters

campaign_id 
ID DA CAMPANHA.

addressbook_id 
ID DA LISTA DE CONTATOS.

Panel\Pkg\Marketing\Email\Campaign\Report\Action

Gerenciamento de CONTATOS.

Panel\Pkg\Marketing\Email\Campaign\Report\Action\store

Mostra os dados para report na Dashboard.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/report',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/report" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/report"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/marketing/email/campaign/report'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/pkg/marketing/email/campaign/report

Panel\Pkg\Research\Nps\Company\Branch

Gerenciamento de Pkg: FORMULÁRIOS. Nps

Panel\Pkg\Research\Nps\Company\Branch\index

TODO: Descrição método.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/pkg/research/nps/company/1/branch',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'pkg_research_nps_company_id'=> 'et',
            'search'=> 'molestiae',
            'status'=> 'perferendis',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/pkg/research/nps/company/1/branch?pkg_research_nps_company_id=et&search=molestiae&status=perferendis" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/company/1/branch"
);

let params = {
    "pkg_research_nps_company_id": "et",
    "search": "molestiae",
    "status": "perferendis",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/research/nps/company/1/branch'
params = {
  'pkg_research_nps_company_id': 'et',
  'search': 'molestiae',
  'status': 'perferendis',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": [
        {}
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

Request

GET api/panel/pkg/research/nps/company/{pkg_research_nps_company_id}/branch

Query Parameters

pkg_research_nps_company_id  optional
ID DA EMPRESA.

search  optional
CAMPO DE BUSCA POR NOME OU ID.

status  optional
CAMPO DE BUSCA POR STATUS.

Panel\Pkg\Research\Nps\Company\Branch\store

Promove o cadastro de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api-app.iporto.com.br/api/panel/pkg/research/nps/company/1/branch',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'pkg_research_nps_company_id'=> 'aut',
        ],
        'json' => [
            'name' => 'iPORTO E-MAILS.',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X POST \
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/company/1/branch?pkg_research_nps_company_id=aut" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"name":"iPORTO E-MAILS."}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/company/1/branch"
);

let params = {
    "pkg_research_nps_company_id": "aut",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "name": "iPORTO E-MAILS."
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/research/nps/company/1/branch'
payload = {
    "name": "iPORTO E-MAILS."
}
params = {
  'pkg_research_nps_company_id': 'aut',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('POST', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

POST api/panel/pkg/research/nps/company/{pkg_research_nps_company_id}/branch

Query Parameters

pkg_research_nps_company_id  optional
ID DA EMPRESA.

Body Parameters

name  string
NOME DA FILIAL.

Panel\Pkg\Research\Nps\Company\Branch\show

Retorna um ITEM para visualização com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/pkg/research/nps/company/1/branch/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'pkg_research_nps_company_id'=> 'pariatur',
            'id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/pkg/research/nps/company/1/branch/1?pkg_research_nps_company_id=pariatur&id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/company/1/branch/1"
);

let params = {
    "pkg_research_nps_company_id": "pariatur",
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/research/nps/company/1/branch/1'
params = {
  'pkg_research_nps_company_id': 'pariatur',
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/pkg/research/nps/company/{pkg_research_nps_company_id}/branch/{id}

Query Parameters

pkg_research_nps_company_id  optional
ID DA EMPRESA.

id 
ID DO ITEM.

Panel\Pkg\Research\Nps\Company\Branch\update

Promove a atualização de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api-app.iporto.com.br/api/panel/pkg/research/nps/company/1/branch/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'pkg_research_nps_company_id'=> 'et',
            'id'=> '1',
        ],
        'json' => [
            'name' => 'iPORTO E-MAILS.',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X PUT \
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/company/1/branch/1?pkg_research_nps_company_id=et&id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"name":"iPORTO E-MAILS."}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/company/1/branch/1"
);

let params = {
    "pkg_research_nps_company_id": "et",
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "name": "iPORTO E-MAILS."
}

fetch(url, {
    method: "PUT",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/research/nps/company/1/branch/1'
payload = {
    "name": "iPORTO E-MAILS."
}
params = {
  'pkg_research_nps_company_id': 'et',
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('PUT', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

PUT api/panel/pkg/research/nps/company/{pkg_research_nps_company_id}/branch/{id}

Query Parameters

pkg_research_nps_company_id  optional
ID DA EMPRESA.

id 
ID DO ITEM.

Body Parameters

name  string
NOME DA FILIAL.

Panel\Pkg\Research\Nps\Company\Branch\destroy

Promove a remoção de um ITEM.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api-app.iporto.com.br/api/panel/pkg/research/nps/company/1/branch/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'pkg_research_nps_company_id'=> 'delectus',
            'id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X DELETE \
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/company/1/branch/1?pkg_research_nps_company_id=delectus&id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/company/1/branch/1"
);

let params = {
    "pkg_research_nps_company_id": "delectus",
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/research/nps/company/1/branch/1'
params = {
  'pkg_research_nps_company_id': 'delectus',
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('DELETE', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

DELETE api/panel/pkg/research/nps/company/{pkg_research_nps_company_id}/branch/{id}

Query Parameters

pkg_research_nps_company_id  optional
ID DA EMPRESA.

id 
ID DO ITEM.

Panel\Pkg\Research\Nps\Company\Company

Gerenciamento de Pkg: FORMULÁRIOS. Nps

Panel\Pkg\Research\Nps\Company\Company\index

TODO: Descrição método.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/pkg/research/nps/company',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'search'=> 'ut',
            'status'=> 'vel',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/pkg/research/nps/company?search=ut&status=vel" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/company"
);

let params = {
    "search": "ut",
    "status": "vel",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/research/nps/company'
params = {
  'search': 'ut',
  'status': 'vel',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": [
        {}
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

Request

GET api/panel/pkg/research/nps/company

Query Parameters

search  optional
CAMPO DE BUSCA POR NOME OU ID.

status  optional
CAMPO DE BUSCA POR STATUS.

Panel\Pkg\Research\Nps\Company\Company\store

Promove o cadastro de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api-app.iporto.com.br/api/panel/pkg/research/nps/company',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'json' => [
            'name' => 'iPORTO LTDA',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X POST \
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/company" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"name":"iPORTO LTDA"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/company"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "name": "iPORTO LTDA"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/research/nps/company'
payload = {
    "name": "iPORTO LTDA"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "data": {}
}

Request

POST api/panel/pkg/research/nps/company

Body Parameters

name  string
NOME DA EMPRESA.

Panel\Pkg\Research\Nps\Company\Company\show

Retorna um ITEM para visualização com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/pkg/research/nps/company/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/pkg/research/nps/company/1?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/company/1"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/research/nps/company/1'
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/pkg/research/nps/company/{id}

Query Parameters

id 
ID DO ITEM.

Panel\Pkg\Research\Nps\Company\Company\update

Promove a atualização de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api-app.iporto.com.br/api/panel/pkg/research/nps/company/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
        'json' => [
            'name' => 'iPORTO LTDA',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X PUT \
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/company/1?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"name":"iPORTO LTDA"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/company/1"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "name": "iPORTO LTDA"
}

fetch(url, {
    method: "PUT",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/research/nps/company/1'
payload = {
    "name": "iPORTO LTDA"
}
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('PUT', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

PUT api/panel/pkg/research/nps/company/{id}

Query Parameters

id 
ID DO ITEM.

Body Parameters

name  string
NOME DA EMPRESA.

Panel\Pkg\Research\Nps\Company\Company\destroy

Promove a remoção de um ITEM.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api-app.iporto.com.br/api/panel/pkg/research/nps/company/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X DELETE \
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/company/1?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/company/1"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/research/nps/company/1'
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('DELETE', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

DELETE api/panel/pkg/research/nps/company/{id}

Query Parameters

id 
ID DO ITEM.

Panel\Pkg\Research\Nps\Nps

Gerenciamento de Pkg: FORMULÁRIOS. Nps

Panel\Pkg\Research\Nps\Nps\index

TODO: Descrição método.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/pkg/research/nps',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'search'=> 'mollitia',
            'status'=> 'et',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/pkg/research/nps?search=mollitia&status=et" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps"
);

let params = {
    "search": "mollitia",
    "status": "et",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/research/nps'
params = {
  'search': 'mollitia',
  'status': 'et',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": [
        {}
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

Request

GET api/panel/pkg/research/nps

Query Parameters

search  optional
CAMPO DE BUSCA POR NOME OU ID.

status  optional
CAMPO DE BUSCA POR STATUS.

Panel\Pkg\Research\Nps\Nps\store

Promove o cadastro de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api-app.iporto.com.br/api/panel/pkg/research/nps',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'json' => [
            'addressbook_id' => '1',
            'name' => 'NPS nossa Empresa',
            'description' => 'dolores',
            'company' => 'accusamus',
            'is_public' => 'yes',
            'is_toten' => 'yes',
            'status' => 'active',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X POST \
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"addressbook_id":"1","name":"NPS nossa Empresa","description":"dolores","company":"accusamus","is_public":"yes","is_toten":"yes","status":"active"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "addressbook_id": "1",
    "name": "NPS nossa Empresa",
    "description": "dolores",
    "company": "accusamus",
    "is_public": "yes",
    "is_toten": "yes",
    "status": "active"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/research/nps'
payload = {
    "addressbook_id": "1",
    "name": "NPS nossa Empresa",
    "description": "dolores",
    "company": "accusamus",
    "is_public": "yes",
    "is_toten": "yes",
    "status": "active"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "data": {}
}

Request

POST api/panel/pkg/research/nps

Body Parameters

addressbook_id  string
ID DA PESQUISA NPS.

name  string
NOME.

description  string optional
DESCRIÇÃO.

company  string optional
NOME DA EMPRESA.

is_public  string optional
SE A PESQUISA É PUBLICA (yes,no).

is_toten  string optional
SE A PESQUISA SERÁ APLICADA EM UM TOTEN (yes,no).

status  string
STATUS (draft,active,inactive).

Panel\Pkg\Research\Nps\Nps\show

Retorna um ITEM para visualização com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/pkg/research/nps/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/pkg/research/nps/1?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/1"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/research/nps/1'
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/pkg/research/nps/{id}

Query Parameters

id 
ID DO ITEM.

Panel\Pkg\Research\Nps\Nps\show_report

Retorna um ITEM para visualização com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/report',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/report?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/report"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/report'
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/pkg/research/nps/{id}/report

Query Parameters

id 
ID DO ITEM.

Panel\Pkg\Research\Nps\Nps\show

Retorna um ITEM para visualização com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/vote',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/vote?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/vote"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/vote'
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/pkg/research/nps/{id}/vote

Query Parameters

id 
ID DO ITEM.

Panel\Pkg\Research\Nps\Nps\update

Promove a atualização de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api-app.iporto.com.br/api/panel/pkg/research/nps/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
        'json' => [
            'pkg_research_nps_company_id' => '1',
            'name' => 'NPS nossa Empresa',
            'description' => 'magni',
            'company' => 'rem',
            'is_public' => 'yes',
            'is_toten' => 'yes',
            'status' => 'active',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X PUT \
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/1?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"pkg_research_nps_company_id":"1","name":"NPS nossa Empresa","description":"magni","company":"rem","is_public":"yes","is_toten":"yes","status":"active"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/1"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "pkg_research_nps_company_id": "1",
    "name": "NPS nossa Empresa",
    "description": "magni",
    "company": "rem",
    "is_public": "yes",
    "is_toten": "yes",
    "status": "active"
}

fetch(url, {
    method: "PUT",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/research/nps/1'
payload = {
    "pkg_research_nps_company_id": "1",
    "name": "NPS nossa Empresa",
    "description": "magni",
    "company": "rem",
    "is_public": "yes",
    "is_toten": "yes",
    "status": "active"
}
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('PUT', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

PUT api/panel/pkg/research/nps/{id}

Query Parameters

id 
ID DO ITEM.

Body Parameters

pkg_research_nps_company_id  string optional
ID DA EMPRESA.

name  string
NOME.

description  string optional
DESCRIÇÃO.

company  string optional
NOME DA EMPRESA.

is_public  string optional
SE A PESQUISA É PUBLICA (yes,no).

is_toten  string optional
SE A PESQUISA SERÁ APLICADA EM UM TOTEN (yes,no).

status  string
STATUS (draft,active,inactive).

Panel\Pkg\Research\Nps\Nps\destroy

Promove a remoção de um ITEM.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api-app.iporto.com.br/api/panel/pkg/research/nps/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X DELETE \
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/1?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/1"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/research/nps/1'
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('DELETE', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

DELETE api/panel/pkg/research/nps/{id}

Query Parameters

id 
ID DO ITEM.

api/panel/pkg/research/nps/{id}/report/vote

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/report/vote',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/report/vote" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/report/vote"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/report/vote'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Request

GET api/panel/pkg/research/nps/{id}/report/vote

Panel\Pkg\Research\Nps\Question\Answer

Gerenciamento de Pkg: FORMULÁRIOS. Nps

Panel\Pkg\Research\Nps\Question\Answer\index

TODO: Descrição método.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/pkg/research/nps/answer',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/pkg/research/nps/answer" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/answer"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/research/nps/answer'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "data": [
        {}
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

Request

GET api/panel/pkg/research/nps/answer

Panel\Pkg\Research\Nps\Question\Answer\store

Promove o cadastro de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/question/1/answer',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'json' => [
            'pkg_research_nps_id' => '1',
            'description' => 'amet',
            'required' => 'no',
            'field_type' => 'dropdown',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X POST \
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/question/1/answer" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"pkg_research_nps_id":"1","description":"amet","required":"no","field_type":"dropdown"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/question/1/answer"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "pkg_research_nps_id": "1",
    "description": "amet",
    "required": "no",
    "field_type": "dropdown"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/question/1/answer'
payload = {
    "pkg_research_nps_id": "1",
    "description": "amet",
    "required": "no",
    "field_type": "dropdown"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "data": {}
}

Request

POST api/panel/pkg/research/nps/{pkg_research_nps_id}/question/{pkg_research_nps_questions_id}/answer

Body Parameters

pkg_research_nps_id  string
ID DA PESQUISA NPS.

description  string optional
TEXTO DA PERGUNTA.

required  string optional
SE É OBRIGATÓRIA A RESPOSTA (yes,no).

field_type  string optional
TIPO DE CAMPO (text,textarea,dropdown,checkbox).

Panel\Pkg\Research\Nps\Question\Answer\update

Promove a atualização de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/question/1/answer/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
            'pkg_research_nps_id'=> '1',
        ],
        'json' => [
            'description' => 'ipsum',
            'required' => 'no',
            'field_type' => 'dropdown',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X PUT \
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/question/1/answer/1?id=1&pkg_research_nps_id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"description":"ipsum","required":"no","field_type":"dropdown"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/question/1/answer/1"
);

let params = {
    "id": "1",
    "pkg_research_nps_id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "description": "ipsum",
    "required": "no",
    "field_type": "dropdown"
}

fetch(url, {
    method: "PUT",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/question/1/answer/1'
payload = {
    "description": "ipsum",
    "required": "no",
    "field_type": "dropdown"
}
params = {
  'id': '1',
  'pkg_research_nps_id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('PUT', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

PUT api/panel/pkg/research/nps/{pkg_research_nps_id}/question/{pkg_research_nps_questions_id}/answer/{id}

Query Parameters

id 
ID DO ITEM.

pkg_research_nps_id  optional
ID DA PESQUISA NPS.

Body Parameters

description  string optional
TEXTO DA PERGUNTA.

required  string optional
SE É OBRIGATÓRIA A RESPOSTA (yes,no).

field_type  string optional
TIPO DE CAMPO (text,textarea,dropdown,checkbox).

Panel\Pkg\Research\Nps\Question\Question\destroy

Promove a remoção de um ITEM.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/question/1/answer/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
            'pkg_research_nps_id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X DELETE \
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/question/1/answer/1?id=1&pkg_research_nps_id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/question/1/answer/1"
);

let params = {
    "id": "1",
    "pkg_research_nps_id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/question/1/answer/1'
params = {
  'id': '1',
  'pkg_research_nps_id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('DELETE', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

DELETE api/panel/pkg/research/nps/{pkg_research_nps_id}/question/{pkg_research_nps_questions_id}/answer/{id}

Query Parameters

id 
ID DO ITEM.

pkg_research_nps_id  optional
ID DA PESQUISA NPS.

Panel\Pkg\Research\Nps\Question\Question

Gerenciamento de Pkg: FORMULÁRIOS. Nps

Panel\Pkg\Research\Nps\Question\Question\store

Promove o cadastro de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/question',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'json' => [
            'pkg_research_nps_id' => '1',
            'description' => 'sit',
            'required' => 'no',
            'field_type' => 'dropdown',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X POST \
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/question" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"pkg_research_nps_id":"1","description":"sit","required":"no","field_type":"dropdown"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/question"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "pkg_research_nps_id": "1",
    "description": "sit",
    "required": "no",
    "field_type": "dropdown"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/question'
payload = {
    "pkg_research_nps_id": "1",
    "description": "sit",
    "required": "no",
    "field_type": "dropdown"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "data": {}
}

Request

POST api/panel/pkg/research/nps/{pkg_research_nps_id}/question

Body Parameters

pkg_research_nps_id  string
ID DA PESQUISA NPS.

description  string optional
TEXTO DA PERGUNTA.

required  string optional
SE É OBRIGATÓRIA A RESPOSTA (yes,no).

field_type  string optional
TIPO DE CAMPO (text,textarea,dropdown,checkbox).

Panel\Pkg\Research\Nps\Question\Question\update

Promove a atualização de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/question/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
            'pkg_research_nps_id'=> '1',
        ],
        'json' => [
            'description' => 'ut',
            'required' => 'no',
            'field_type' => 'dropdown',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X PUT \
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/question/1?id=1&pkg_research_nps_id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"description":"ut","required":"no","field_type":"dropdown"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/question/1"
);

let params = {
    "id": "1",
    "pkg_research_nps_id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "description": "ut",
    "required": "no",
    "field_type": "dropdown"
}

fetch(url, {
    method: "PUT",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/question/1'
payload = {
    "description": "ut",
    "required": "no",
    "field_type": "dropdown"
}
params = {
  'id': '1',
  'pkg_research_nps_id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('PUT', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

PUT api/panel/pkg/research/nps/{pkg_research_nps_id}/question/{id}

Query Parameters

id 
ID DO ITEM.

pkg_research_nps_id  optional
ID DA PESQUISA NPS.

Body Parameters

description  string optional
TEXTO DA PERGUNTA.

required  string optional
SE É OBRIGATÓRIA A RESPOSTA (yes,no).

field_type  string optional
TIPO DE CAMPO (text,textarea,dropdown,checkbox).

Panel\Pkg\Research\Nps\Question\Question\destroy

Promove a remoção de um ITEM.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/question/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
            'pkg_research_nps_id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X DELETE \
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/question/1?id=1&pkg_research_nps_id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/question/1"
);

let params = {
    "id": "1",
    "pkg_research_nps_id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/research/nps/1/question/1'
params = {
  'id': '1',
  'pkg_research_nps_id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('DELETE', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

DELETE api/panel/pkg/research/nps/{pkg_research_nps_id}/question/{id}

Query Parameters

id 
ID DO ITEM.

pkg_research_nps_id  optional
ID DA PESQUISA NPS.

Panel\Service\Addressbook\Addressbook

Gerenciamento de LISTAS DE CONTATOS.

Panel\Service\Addressbook\Addressbook\index

Lista todos as LISTAS DE CONTATOS criadas.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/addressbook',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'search'=> 'et',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/addressbook?search=et" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/addressbook"
);

let params = {
    "search": "et",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/addressbook'
params = {
  'search': 'et',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": [
        {
            "id": 1,
            "client_id": 1,
            "name": "Primeira Lista de Contatos",
            "deleted_at": null,
            "created_at": "2019-06-07 09:14:05",
            "updated_at": "2019-06-07 09:14:05",
            "display_at": "2019-06-07 09:33:07"
        }
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

Request

GET api/panel/addressbook

Query Parameters

search  optional
CAMPO DE BUSCA POR NOME OU ID.

Panel\Service\Addressbook\Addressbook\contacts

Lista todos ao CONTATOS de uma LISTAS DE CONTATOS.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/addressbook/1/contacts',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> 'nulla',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/addressbook/1/contacts?id=nulla" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/addressbook/1/contacts"
);

let params = {
    "id": "nulla",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/addressbook/1/contacts'
params = {
  'id': 'nulla',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": [
        {
            "id": 1,
            "client_id": 1,
            "name": "Primeira Lista de Contatos",
            "deleted_at": null,
            "created_at": "2019-06-07 09:14:05",
            "updated_at": "2019-06-07 09:14:05",
            "display_at": "2019-06-07 09:33:07"
        }
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

Request

GET api/panel/addressbook/{id}/contacts

Query Parameters

id 
ID DA LISTA DE CONTATOS. Ex: 1

Panel\Service\Addressbook\Addressbook\store

Faz o cadastro de uma nova LISTA DE CONTATOS.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api-app.iporto.com.br/api/panel/addressbook',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'json' => [
            'name' => 'corrupti',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X POST \
    "https://api-app.iporto.com.br/api/panel/addressbook" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"name":"corrupti"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/addressbook"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "name": "corrupti"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/addressbook'
payload = {
    "name": "corrupti"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "data": {}
}

Request

POST api/panel/addressbook

Body Parameters

name  string
NOME DA LISTA DE CONTATOS. Ex: Lista de Cliente

Panel\Service\Addressbook\Addressbook\show

Mostra detalhes de uma LISTA DE CONTATOS.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/addressbook/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> 'natus',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/addressbook/1?id=natus" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/addressbook/1"
);

let params = {
    "id": "natus",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/addressbook/1'
params = {
  'id': 'natus',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 1,
        "user_id": 1,
        "addressbook_id": null,
        "email": "maikel@maiptrap.io",
        "domain": "maiptrap.io",
        "name": "maikel",
        "email_sending_status": "optin",
        "identifier": null,
        "phone1": null,
        "phone2": null,
        "address": null,
        "birthday": null,
        "cpf": null,
        "field1": null,
        "field2": null,
        "field3": null,
        "engagement": 0,
        "openings": 0,
        "registration": "panel",
        "is_valid": "yes",
        "deleted_at": null,
        "created_at": "2019-06-04 17:31:05",
        "updated_at": "2019-06-04 17:31:05",
        "display_at": "2019-06-04 17:54:16",
        "addressbook": null
    }
}

Request

GET api/panel/addressbook/{id}

Query Parameters

id 
ID DA LISTA DE CONTATOS. Ex: 1

Panel\Service\Addressbook\Addressbook\update

Atualiza detalhes de uma LISTA DE CONTATOS.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api-app.iporto.com.br/api/panel/addressbook/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> 'fuga',
        ],
        'json' => [
            'name' => 'et',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X PUT \
    "https://api-app.iporto.com.br/api/panel/addressbook/1?id=fuga" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"name":"et"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/addressbook/1"
);

let params = {
    "id": "fuga",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "name": "et"
}

fetch(url, {
    method: "PUT",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/addressbook/1'
payload = {
    "name": "et"
}
params = {
  'id': 'fuga',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('PUT', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 1,
        "user_id": 1,
        "addressbook_id": null,
        "email": "maikel@maiptrap.io",
        "domain": "maiptrap.io",
        "name": "maikel",
        "email_sending_status": "optin",
        "identifier": null,
        "phone1": null,
        "phone2": null,
        "address": null,
        "birthday": null,
        "cpf": null,
        "field1": null,
        "field2": null,
        "field3": null,
        "engagement": 0,
        "openings": 0,
        "registration": "panel",
        "is_valid": "yes",
        "deleted_at": null,
        "created_at": "2019-06-04 17:31:05",
        "updated_at": "2019-06-04 17:31:05",
        "display_at": "2019-06-04 17:54:16",
        "addressbook": null
    }
}

Request

PUT api/panel/addressbook/{id}

Query Parameters

id 
ID DO CLIENTE. Ex: 1

Body Parameters

name  string
NOME DA LISTA DE CONTATOS. Ex: Lista de Cliente

Panel\Service\Addressbook\Addressbook\destroy

Remove uma LISTA DE CONTATOS.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api-app.iporto.com.br/api/panel/addressbook/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> 'et',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X DELETE \
    "https://api-app.iporto.com.br/api/panel/addressbook/1?id=et" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/addressbook/1"
);

let params = {
    "id": "et",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/addressbook/1'
params = {
  'id': 'et',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('DELETE', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 1,
        "name": "Minha Lista",
        "deleted_at": {
            "date": "2019-06-07 09:59:51.987497",
            "timezone_type": 3,
            "timezone": "America\/Sao_Paulo"
        },
        "created_at": "2019-06-07 09:39:22",
        "updated_at": "2019-06-07 09:59:51",
        "contacts_count": 0,
        "display_at": "2019-06-07 09:59:52"
    }
}

Request

DELETE api/panel/addressbook/{id}

Query Parameters

id 
ID DO CLIENTE. Ex: 1

Panel\Service\Contact\Contact

Gerenciamento de CONTATOS.

Panel\Service\Contact\Contact\index

Lista todos as LISTAS DE CONTATOS criadas.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/contact',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'search'=> 'rerum',
            'available_type'=> 'aliquam',
            'addressbook_id'=> 'modi',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/contact?search=rerum&available_type=aliquam&addressbook_id=modi" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/contact"
);

let params = {
    "search": "rerum",
    "available_type": "aliquam",
    "addressbook_id": "modi",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/contact'
params = {
  'search': 'rerum',
  'available_type': 'aliquam',
  'addressbook_id': 'modi',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": [],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

Request

GET api/panel/contact

Query Parameters

search  optional
CAMPO DE BUSCA POR NOME OU ID.

available_type  optional
CAMPO DE BUSCA ATRAVÉS DO TIPO DE EMAIL valid|invalid.

addressbook_id  optional
CAMPO DE BUSCA ID DE LISTA DE CONTATOS.

Panel\Service\Contact\Contact\show

Mostra detalhes de um CONTATO.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/contact/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> 'aut',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/contact/1?id=aut" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/contact/1"
);

let params = {
    "id": "aut",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/contact/1'
params = {
  'id': 'aut',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 1,
        "addressbook_id": null,
        "email": "maikel@maiptrap.io",
        "domain": "maiptrap.io",
        "name": "maikel",
        "email_sending_status": "optin",
        "identifier": null,
        "phone1": null,
        "phone2": null,
        "address": null,
        "birthday": null,
        "cpf": null,
        "field1": null,
        "field2": null,
        "field3": null,
        "engagement": 0,
        "openings": 0,
        "registration": "panel",
        "is_valid": "yes",
        "deleted_at": null,
        "created_at": "2019-06-04 17:31:05",
        "updated_at": "2019-06-04 17:31:05",
        "display_at": "2019-06-04 17:54:16",
        "addressbook": null
    }
}

Request

GET api/panel/contact/{id}

Query Parameters

id 
ID DO CONTATO. Ex: 1

Panel\Service\Contact\Contact\store

Faz o cadastro de um novo CONTATO em uma LISTA DE CONTATOS.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api-app.iporto.com.br/api/panel/contact',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'json' => [
            'addressbook_id' => 'eum',
            'name' => 'earum',
            'email' => 'ut',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X POST \
    "https://api-app.iporto.com.br/api/panel/contact" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"addressbook_id":"eum","name":"earum","email":"ut"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/contact"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "addressbook_id": "eum",
    "name": "earum",
    "email": "ut"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/contact'
payload = {
    "addressbook_id": "eum",
    "name": "earum",
    "email": "ut"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "data": {}
}

Request

POST api/panel/contact

Body Parameters

addressbook_id  string
ID DA LISTA DE CONTATOS. Ex: 1

name  string
NOME DO CONTATO. Ex: Frederico

email  string
EMAIL DO CONTATO. Ex: dev@iporto.io

Panel\Service\Contact\Contact\update

Atualiza detalhes de um CONTATO.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api-app.iporto.com.br/api/panel/contact/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> 'quia',
        ],
        'json' => [
            'name' => 'voluptatem',
            'addressbook_id' => 'in',
            'email' => 'explicabo',
            'email_sending_status' => 'beatae',
            'identifier' => 'quidem',
            'phone1' => 'fugit',
            'phone2' => 'et',
            'address' => 'est',
            'birthday' => 'ipsa',
            'cpf' => 'sed',
            'field1' => 'vero',
            'field2' => 'a',
            'field3' => 'temporibus',
            'registration' => 'nihil',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X PUT \
    "https://api-app.iporto.com.br/api/panel/contact/1?id=quia" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"name":"voluptatem","addressbook_id":"in","email":"explicabo","email_sending_status":"beatae","identifier":"quidem","phone1":"fugit","phone2":"et","address":"est","birthday":"ipsa","cpf":"sed","field1":"vero","field2":"a","field3":"temporibus","registration":"nihil"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/contact/1"
);

let params = {
    "id": "quia",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "name": "voluptatem",
    "addressbook_id": "in",
    "email": "explicabo",
    "email_sending_status": "beatae",
    "identifier": "quidem",
    "phone1": "fugit",
    "phone2": "et",
    "address": "est",
    "birthday": "ipsa",
    "cpf": "sed",
    "field1": "vero",
    "field2": "a",
    "field3": "temporibus",
    "registration": "nihil"
}

fetch(url, {
    method: "PUT",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/contact/1'
payload = {
    "name": "voluptatem",
    "addressbook_id": "in",
    "email": "explicabo",
    "email_sending_status": "beatae",
    "identifier": "quidem",
    "phone1": "fugit",
    "phone2": "et",
    "address": "est",
    "birthday": "ipsa",
    "cpf": "sed",
    "field1": "vero",
    "field2": "a",
    "field3": "temporibus",
    "registration": "nihil"
}
params = {
  'id': 'quia',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('PUT', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 1,
        "addressbook_id": null,
        "email": "maikel@maiptrap.io",
        "domain": "maiptrap.io",
        "name": "maikel",
        "email_sending_status": "optin",
        "identifier": null,
        "phone1": null,
        "phone2": null,
        "address": null,
        "birthday": null,
        "cpf": null,
        "field1": null,
        "field2": null,
        "field3": null,
        "engagement": 0,
        "openings": 0,
        "registration": "panel",
        "is_valid": "yes",
        "deleted_at": null,
        "created_at": "2019-06-04 17:31:05",
        "updated_at": "2019-06-04 17:31:05",
        "display_at": "2019-06-04 17:54:16",
        "addressbook": null
    }
}

Request

PUT api/panel/contact/{id}

Query Parameters

id 
ID DO CONTATO. Ex: 1

Body Parameters

name  string
NOME. Ex:

addressbook_id  string
LISTA DE CONTATOS. Ex:

email  string
EMAIL. Ex:

email_sending_status  string
STATUS DE INSCRIÇÃO ('optin','optout','double_optin','lead'). Ex:

identifier  string
ID. Ex:

phone1  string
TELEFONE. Ex:

phone2  string
TELEFONE. Ex:

address  string
ENDEREÇO. Ex:

birthday  string
DATA DE ANIVERSÁRIO. Ex:

cpf  string
CPF. Ex:

field1  string
CAMPO ADICIONAL. Ex:

field2  string
CAMPO ADICIONAL. Ex:

field3  string
CAMPO ADICIONAL. Ex:

registration  string
TIPO DE REGISTRO ('panel', 'form', 'upload'). Ex:

Panel\Service\Contact\Contact\destroy

Remove um CONTATO.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api-app.iporto.com.br/api/panel/contact/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> 'itaque',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X DELETE \
    "https://api-app.iporto.com.br/api/panel/contact/1?id=itaque" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/contact/1"
);

let params = {
    "id": "itaque",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/contact/1'
params = {
  'id': 'itaque',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('DELETE', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 1,
        "addressbook_id": null,
        "email": "maikel@maiptrap.io",
        "domain": "maiptrap.io",
        "name": "maikel",
        "email_sending_status": "optin",
        "identifier": null,
        "phone1": null,
        "phone2": null,
        "address": null,
        "birthday": null,
        "cpf": null,
        "field1": null,
        "field2": null,
        "field3": null,
        "engagement": 0,
        "openings": 0,
        "registration": "panel",
        "is_valid": "yes",
        "deleted_at": "2019-07-04 17:31:05",
        "created_at": "2019-06-04 17:31:05",
        "updated_at": "2019-06-04 17:31:05",
        "display_at": "2019-06-04 17:54:16",
        "addressbook": null
    }
}

Request

DELETE api/panel/contact/{id}

Query Parameters

id 
ID DO CLIENTE. Ex: 1

Panel\Service\Send\Send

Gerenciamento dos ENVIOS feitos através do SMTP.

Panel\Service\Send\history

O histórico de ENVIO varia de cada plano. Verifique condições comerciais na página de planos do serviço.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/send/history',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'start_at'=> 'iusto',
            'end_at'=> 'laborum',
            'search'=> 'deleniti',
            'search_status'=> 'et',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/send/history?start_at=iusto&end_at=laborum&search=deleniti&search_status=et" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/send/history"
);

let params = {
    "start_at": "iusto",
    "end_at": "laborum",
    "search": "deleniti",
    "search_status": "et",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/send/history'
params = {
  'start_at': 'iusto',
  'end_at': 'laborum',
  'search': 'deleniti',
  'search_status': 'et',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/send/history

Query Parameters

start_at  optional
DATA INICIAL DE BUSCA.

end_at  optional
DATA FINAL DE BUSCA.

search  optional
BUSCA.

search_status  optional
TIPO DE BUSCA (msg:yes:delivery | msg:not:delivery | msg:not:accepted).

Panel\Service\Send\real_time

O histórico de ENVIO varia de cada plano. Verifique condições comerciais na página de planos do serviço.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/send/real_time',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/send/real_time" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/send/real_time"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/send/real_time'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/send/real_time

Panel\Service\Send\search

Methodo alias para Panel\Service\Send\history. Será descontinuado em uma próxima versão.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/send/search',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/send/search" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/send/search"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/send/search'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Request

GET api/panel/send/search

Panel\Service\Send\show

Detalhes de um envio.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/send/show/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'message_id'=> 'sed',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/send/show/1?message_id=sed" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/send/show/1"
);

let params = {
    "message_id": "sed",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/send/show/1'
params = {
  'message_id': 'sed',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/send/show/{message_id}

Query Parameters

message_id 
MESSAGE ID DA MENSAGEM.

Panel\Service\Validator\Email

Validação de EMAIL.

Panel\Service\Validator\Email\check

Verifica se um EMAIL é válido para recebimento de envios.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/validator/email/1/validate',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'email'=> 'dev@iporto.io',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/validator/email/1/validate?email=dev%40iporto.io" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/validator/email/1/validate"
);

let params = {
    "email": "dev@iporto.io",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/validator/email/1/validate'
params = {
  'email': 'dev@iporto.io',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {
        "email": "dev@iporto.io",
        "is_valid": 1
    }
}

Request

GET api/panel/validator/email/{email}/validate

Query Parameters

email 
EMAIL QUE SERÁ VALIDADO/VERIFICADO.

Panel\Service\Validator\Email\check

Verifica se um EMAIL é válido para recebimento de envios.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api-app.iporto.com.br/api/panel/validator/email/1/validate',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'email'=> 'dev@iporto.io',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X POST \
    "https://api-app.iporto.com.br/api/panel/validator/email/1/validate?email=dev%40iporto.io" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/validator/email/1/validate"
);

let params = {
    "email": "dev@iporto.io",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/validator/email/1/validate'
params = {
  'email': 'dev@iporto.io',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('POST', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {
        "email": "dev@iporto.io",
        "is_valid": 1
    }
}

Request

POST api/panel/validator/email/{email}/validate

Query Parameters

email 
EMAIL QUE SERÁ VALIDADO/VERIFICADO.

Panel\Smtp\Account

Gerenciamento dos Hosts de SMTP, Usuários e Envios.

Panel\Smtp\Account\index

Lista todas as contas de SMTP.

Para listar todas as contas de SMTP de um domínio, faça a requisição utilizando o método "Domínios: Visualiza detalhes de um SMTP por ID.".

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/account',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/account" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/account"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/account'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/account

Panel\Smtp\Account\store

Cria uma nova conta de SMTP.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api-app.iporto.com.br/api/panel/smtp/1/account',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'smtp_id'=> 'et',
        ],
        'json' => [
            'username' => 'rerum',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X POST \
    "https://api-app.iporto.com.br/api/panel/smtp/1/account?smtp_id=et" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"username":"rerum"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/smtp/1/account"
);

let params = {
    "smtp_id": "et",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "username": "rerum"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/smtp/1/account'
payload = {
    "username": "rerum"
}
params = {
  'smtp_id': 'et',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('POST', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

POST api/panel/smtp/{smtp_id}/account

Query Parameters

smtp_id 
ID do SMTP que receberá a conta criada.

Body Parameters

username  string
usuário que será criado. não informar o domínio completo ou @. Ex: dev

Panel\Smtp\Account\show

Visualiza detalhes de uma conta de SMTP por ID.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/smtp/1/account/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'smtp_id'=> 'debitis',
            'id'=> 'omnis',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/smtp/1/account/1?smtp_id=debitis&id=omnis" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/smtp/1/account/1"
);

let params = {
    "smtp_id": "debitis",
    "id": "omnis",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/smtp/1/account/1'
params = {
  'smtp_id': 'debitis',
  'id': 'omnis',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/smtp/{smtp_id}/account/{id}

Query Parameters

smtp_id 
ID do SMTP.

id 
ID da conta de SMTP.

Panel\Smtp\Account\showByAccount

Visualiza detalhes de uma conta de SMTP por e-mail.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/smtp/1/account/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'smtp_id'=> 'rerum',
            'username'=> 'expedita',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/smtp/1/account/1?smtp_id=rerum&username=expedita" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/smtp/1/account/1"
);

let params = {
    "smtp_id": "rerum",
    "username": "expedita",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/smtp/1/account/1'
params = {
  'smtp_id': 'rerum',
  'username': 'expedita',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/smtp/{smtp_id}/account/{account}

Query Parameters

smtp_id 
ID do SMTP.

username 
USERNAME da conta de SMTP.

Panel\Smtp\Account\destroy

Remove uma conta de SMTP por ID.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api-app.iporto.com.br/api/panel/smtp/1/account/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'smtp_id'=> 'qui',
            'id'=> 'dolores',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X DELETE \
    "https://api-app.iporto.com.br/api/panel/smtp/1/account/1?smtp_id=qui&id=dolores" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/smtp/1/account/1"
);

let params = {
    "smtp_id": "qui",
    "id": "dolores",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/smtp/1/account/1'
params = {
  'smtp_id': 'qui',
  'id': 'dolores',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('DELETE', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

DELETE api/panel/smtp/{smtp_id}/account/{id}

Query Parameters

smtp_id 
ID do SMTP.

id  optional
string ID da conta de SMTP.

Panel\Smtp\Compliance\Fbl

Alertas de Abuso e SPAM de um DOMÍNIO.

Panel\Smtp\Compliance\Fbl\index

Lista histórico de ALERTAS DE SPAM aplicados ao DOMINIO.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/spam-report',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'smtp_id'=> 'vel',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/spam-report?smtp_id=vel" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/spam-report"
);

let params = {
    "smtp_id": "vel",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/spam-report'
params = {
  'smtp_id': 'vel',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/spam-report

Query Parameters

smtp_id 
ID do SMTP.

Panel\Smtp\Compliance\Fbl\solved

Promove a atualização de um ITEM com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api-app.iporto.com.br/api/panel/spam-report/1/solved',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X PUT \
    "https://api-app.iporto.com.br/api/panel/spam-report/1/solved?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/spam-report/1/solved"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/spam-report/1/solved'
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('PUT', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

PUT api/panel/spam-report/{id}/solved

Query Parameters

id 
ID DO ITEM.

Panel\Smtp\Email\Send

Gerenciamento dos Hosts de SMTP, Usuários e Envios.

Panel\Smtp\Email\Send\send

Envio (E-mail): Envio de e-mail via API

alt text

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api-app.iporto.com.br/api/panel/smtp/1/account/1/email/send',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'domain'=> 'eum',
            'account'=> 'cupiditate',
        ],
        'json' => [
            'email_subject' => 'animi',
            'email_from' => 'in',
            'email_from_name' => 'minima',
            'email_to' => 'nulla',
            'email_to_name' => 'quaerat',
            'email_cc' => 'qui',
            'email_bcc' => 'culpa',
            'email_html_body' => 'voluptates',
            'email_text_body' => 'perferendis',
            'email_headers' => 'est',
            'email_attachaments' => 'ut',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X POST \
    "https://api-app.iporto.com.br/api/panel/smtp/1/account/1/email/send?domain=eum&account=cupiditate" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"email_subject":"animi","email_from":"in","email_from_name":"minima","email_to":"nulla","email_to_name":"quaerat","email_cc":"qui","email_bcc":"culpa","email_html_body":"voluptates","email_text_body":"perferendis","email_headers":"est","email_attachaments":"ut"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/smtp/1/account/1/email/send"
);

let params = {
    "domain": "eum",
    "account": "cupiditate",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "email_subject": "animi",
    "email_from": "in",
    "email_from_name": "minima",
    "email_to": "nulla",
    "email_to_name": "quaerat",
    "email_cc": "qui",
    "email_bcc": "culpa",
    "email_html_body": "voluptates",
    "email_text_body": "perferendis",
    "email_headers": "est",
    "email_attachaments": "ut"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/smtp/1/account/1/email/send'
payload = {
    "email_subject": "animi",
    "email_from": "in",
    "email_from_name": "minima",
    "email_to": "nulla",
    "email_to_name": "quaerat",
    "email_cc": "qui",
    "email_bcc": "culpa",
    "email_html_body": "voluptates",
    "email_text_body": "perferendis",
    "email_headers": "est",
    "email_attachaments": "ut"
}
params = {
  'domain': 'eum',
  'account': 'cupiditate',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('POST', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):

{
    "data": {
        "send_error_info": null,
        "account": {
            "id": 1,
            "client_id": 1,
            "user_id": 1,
            "node_id": 1,
            "smtp_id": 1,
            "account": "dev@iporto.io",
            "password": "12SL0tmOG9xOTIw",
            "finished_at": "2018-05-22 10:36:53",
            "status": "created",
            "deleted_at": null,
            "created_at": "2018-10-19 09:20:23",
            "updated_at": "2018-10-19 09:20:23",
            "display_at": "2019-06-10 15:43:09"
        },
        "params": {
            "email_from": "dev@iporto.io",
            "email_from_name": "Dev",
            "email_to": "test@iporto.io",
            "email_to_name": "Dev",
            "email_cc": null,
            "email_bcc": null,
            "email_subject": "Envio da API",
            "email_html_body": "Oi!",
            "email_text_body": null,
            "email_headers": null
        }
    }
}

Request

POST api/panel/smtp/{domain}/account/{account}/email/send

Query Parameters

domain 
Domínio do SMTP.

account 
Usuário utilizado como FROM do envio.

Body Parameters

email_subject  required optional
Assunto do e-mail.

email_from  required optional
E-mail utilizado como FROM (de).

email_from_name  Nome optional
utilizado como FROM (de).

email_to  required optional
E-mail do destinatário.

email_to_name  Nome optional
do destinatário.

email_cc  E-mails optional
para enviar em cópia. É possível separar e-mails com vírgulas.

email_bcc  E-mails optional
para enviar em cópia coulta. É possível separar e-mails com vírgulas.

email_html_body  required optional
Conteúdo do E-mail.

email_text_body  Conteúdo optional
do E-mail versão texto.

email_headers  Array optional
com headers com Chave e Valor.

email_attachaments  optional
Anexos.

Panel\Smtp\Email\Send\test

Envio (E-mail): Envio de teste.

Faz um envio, automático, de teste para verificar autenticação e recebimento/envio. O e-mail de teste é enviado para o e-mail de login da conta detentora do SMTP.

alt text

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api-app.iporto.com.br/api/panel/smtp/1/account/1/email/send/test',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'domain'=> 'excepturi',
            'account'=> 'dicta',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X POST \
    "https://api-app.iporto.com.br/api/panel/smtp/1/account/1/email/send/test?domain=excepturi&account=dicta" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/smtp/1/account/1/email/send/test"
);

let params = {
    "domain": "excepturi",
    "account": "dicta",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/smtp/1/account/1/email/send/test'
params = {
  'domain': 'excepturi',
  'account': 'dicta',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('POST', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {
        "send_error_info": null,
        "account": {
            "id": 1,
            "client_id": 1,
            "user_id": 1,
            "node_id": 1,
            "smtp_id": 1,
            "account": "dev@iporto.io",
            "password": "12SL0tmOG9xOTIw",
            "finished_at": "2018-05-22 10:36:53",
            "status": "created",
            "deleted_at": null,
            "created_at": "2018-10-19 09:20:23",
            "updated_at": "2018-10-19 09:20:23",
            "display_at": "2019-06-10 15:44:46"
        },
        "params": []
    }
}

Request

POST api/panel/smtp/{domain}/account/{account}/email/send/test

Query Parameters

domain 
Domínio do SMTP.

account 
Usuário utilizado como FROM do envio.

Panel\Smtp\Health\Score

Score/Pontuação de um DOMINIO.

Panel\Smtp\Health\Score\index

Lista histórico de SCORES aplicados ao DOMINIO.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/smtp/health/score',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'smtp_id'=> 'officia',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/smtp/health/score?smtp_id=officia" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/smtp/health/score"
);

let params = {
    "smtp_id": "officia",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/smtp/health/score'
params = {
  'smtp_id': 'officia',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/smtp/health/score

Query Parameters

smtp_id 
ID do SMTP.

Panel\Smtp\Health\Score\index

Lista histórico de SCORES aplicados ao DOMINIO.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/smtp/1/health/score',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'smtp_id'=> 'quia',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/smtp/1/health/score?smtp_id=quia" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/smtp/1/health/score"
);

let params = {
    "smtp_id": "quia",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/smtp/1/health/score'
params = {
  'smtp_id': 'quia',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/smtp/{smtp_id}/health/score

Query Parameters

smtp_id 
ID do SMTP.

Panel\Smtp\Report

Gerenciamento de CONTATOS.

Panel\Smtp\Report\store

Mostra os dados para report na Dashboard.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/smtp/report',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/smtp/report" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/smtp/report"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/smtp/report'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/smtp/report

Panel\Smtp\Report\Report

Gerenciamento dos Hosts de SMTP, Usuários e Envios.

Panel\Smtp\Report\Report\graph

Dados quantitativos por Tag.

Limite máximo de 90 registros.

alt text

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/smtp/1/report/graph/1/start_at/1/end_at/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'smtp_id'=> 'molestias',
            'graph'=> 'nisi',
            'start_at'=> 'aut',
            'end_at'=> 'pariatur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/smtp/1/report/graph/1/start_at/1/end_at/1?smtp_id=molestias&graph=nisi&start_at=aut&end_at=pariatur" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/smtp/1/report/graph/1/start_at/1/end_at/1"
);

let params = {
    "smtp_id": "molestias",
    "graph": "nisi",
    "start_at": "aut",
    "end_at": "pariatur",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/smtp/1/report/graph/1/start_at/1/end_at/1'
params = {
  'smtp_id': 'molestias',
  'graph': 'nisi',
  'start_at': 'aut',
  'end_at': 'pariatur',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/smtp/{smtp_id}/report/graph/{graph_type}/start_at/{start_at}/end_at/{end_at}

Query Parameters

smtp_id 
ID do SMTP.

graph 
tipo de dado que será retornado. Ex: _delivered

start_at  optional
data de início.

end_at  optional
data de fim.

Panel\Smtp\Smtp

Gerenciamento dos Hosts de SMTP, Usuários e Envios.

Panel\Smtp\Smtp\tlds

Lista todas as TLD possíveis.

Lista com todas as TLDs disponíveis para a criação de novas contas de SMTP.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/smtp/tlds',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/smtp/tlds" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/smtp/tlds"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/smtp/tlds'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/smtp/tlds

Panel\Smtp\Smtp\blockedDomains

Lista todas as Domínios bloqueados para criação.

Lista com todas os domínios que não podem ser utilizados para novas criações.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/smtp/blocked-domains',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/smtp/blocked-domains" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/smtp/blocked-domains"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/smtp/blocked-domains'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/smtp/blocked-domains

Panel\Smtp\Smtp\index

Lista todos os SMTPs criados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/smtp',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/smtp" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/smtp"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/smtp'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/smtp

Panel\Smtp\Smtp\list

Lista todos os SMTPs criados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/smtp/list',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/smtp/list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/smtp/list"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/smtp/list'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/smtp/list

Panel\Smtp\Smtp\store

Criar um novo domínio de SMTP.

O processo para criação de um novo domínio de SMTP leva em torno de 1 a 5 minutos para ser finalizado.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api-app.iporto.com.br/api/panel/smtp',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'json' => [
            'domain' => 'soluta',
            'plan_type' => 'deleniti',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X POST \
    "https://api-app.iporto.com.br/api/panel/smtp" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"domain":"soluta","plan_type":"deleniti"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/smtp"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "domain": "soluta",
    "plan_type": "deleniti"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/smtp'
payload = {
    "domain": "soluta",
    "plan_type": "deleniti"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "data": {}
}

Request

POST api/panel/smtp

Body Parameters

domain  string
Domínio para ser criado.

plan_type  string
Tipo de plano para ser utilizado na criação. Ex: 'basic','professional','advanced','relay'

Panel\Smtp\Smtp\show

Visualiza detalhes de um SMTP por ID.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/smtp/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> 'quidem',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/smtp/1?id=quidem" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/smtp/1"
);

let params = {
    "id": "quidem",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/smtp/1'
params = {
  'id': 'quidem',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/smtp/{id}

Query Parameters

id 
ID do SMTP criado.

Panel\Smtp\Smtp\showByDomain

Visualiza detalhes de um SMTP por Domínio.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/smtp/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'domain'=> 'qui',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/smtp/1?domain=qui" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/smtp/1"
);

let params = {
    "domain": "qui",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/smtp/1'
params = {
  'domain': 'qui',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/smtp/{domain}

Query Parameters

domain 
Domínio do SMTP criado.

Panel\Smtp\Smtp\ip

Visualiza detalhes dos IP's dedicados de um SMTP, caso o SMTP tenha IP dedicado.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/smtp/1/ip',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> 'perferendis',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/smtp/1/ip?id=perferendis" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/smtp/1/ip"
);

let params = {
    "id": "perferendis",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/smtp/1/ip'
params = {
  'id': 'perferendis',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/smtp/{id}/ip

Query Parameters

id 
ID do SMTP criado.

anel\Smtp\Smtp\update

Atualiza um SMTP.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->put(
    'https://api-app.iporto.com.br/api/panel/smtp/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> 'et',
        ],
        'json' => [
            'track_opens' => 'velit',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X PUT \
    "https://api-app.iporto.com.br/api/panel/smtp/1?id=et" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"track_opens":"velit"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/smtp/1"
);

let params = {
    "id": "et",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "track_opens": "velit"
}

fetch(url, {
    method: "PUT",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/smtp/1'
payload = {
    "track_opens": "velit"
}
params = {
  'id': 'et',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('PUT', url, headers=headers, json=payload, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

PUT api/panel/smtp/{id}

Query Parameters

id 
ID DO SMTP. Ex: 1

Body Parameters

track_opens  string
SE DOMINIO UTILIZA TRACK DE ABERTURAS (yes,no). Ex: yes

Panel\Smtp\Smtp\destroy

Remove um domínio de SMTP por ID.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api-app.iporto.com.br/api/panel/smtp/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> 'quo',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X DELETE \
    "https://api-app.iporto.com.br/api/panel/smtp/1?id=quo" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/smtp/1"
);

let params = {
    "id": "quo",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/smtp/1'
params = {
  'id': 'quo',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('DELETE', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

DELETE api/panel/smtp/{id}

Query Parameters

id 
ID do SMTP criado.

Panel\Smtp\Smtp\destroyByDomain

Remove um domínio de SMTP por Domínio.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://api-app.iporto.com.br/api/panel/smtp/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'domain'=> 'expedita',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X DELETE \
    "https://api-app.iporto.com.br/api/panel/smtp/1?domain=expedita" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/smtp/1"
);

let params = {
    "domain": "expedita",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/smtp/1'
params = {
  'domain': 'expedita',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('DELETE', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

DELETE api/panel/smtp/{domain}

Query Parameters

domain 
DOMINIO do SMTP criado.

Panel\Task\Task

Gerenciamento de TAREFAS. TAREFAS são iniciadas quando ações precisam rodar em "segundo plano".

Panel\Task\Task\show

Mostra detalhes de uma TAREFA.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/task/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> 'rerum',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/task/1?id=rerum" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/task/1"
);

let params = {
    "id": "rerum",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/task/1'
params = {
  'id': 'rerum',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {
        "id": 1,
        "client_id": 1,
        "object_id": 1,
        "raw": "{\"name\":\"Listsa de Contatos - Primeira Lista de Contatos\",\"object_id\":14}",
        "retries": 0,
        "status": "awaiting",
        "created_at": "2019-06-07 17:39:55",
        "updated_at": "2019-06-07 17:39:55",
        "display_at": "2019-06-07 17:44:29"
    }
}

Request

GET api/panel/task/{id}

Query Parameters

id 
ID DA TAREFA. Ex: 1

Panel\Task\Task\store

Cria uma nova TAREFA;

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://api-app.iporto.com.br/api/panel/task',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'json' => [
            'name' => 'placeat',
            'object_id' => 'quod',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X POST \
    "https://api-app.iporto.com.br/api/panel/task" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c" \
    -d '{"name":"placeat","object_id":"quod"}'
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/task"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

let body = {
    "name": "placeat",
    "object_id": "quod"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/task'
payload = {
    "name": "placeat",
    "object_id": "quod"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "data": {}
}

Request

POST api/panel/task

Body Parameters

name  string
NOME DA TAREFA. Ex: Dados do Cliente

object_id  string
ID DO OBJETO PRINCIPAL. Ex: 1

Pkg\Template\Email

Gerenciamento de Pkg: TEMPLATES. Campaign

Pkg\Template\Email\index

TODO: Descrição método.

alt text

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/pkg/template/email/campaign',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'search'=> 'asperiores',
            'status'=> 'libero',
            'editor_type'=> 'aut',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/pkg/template/email/campaign?search=asperiores&status=libero&editor_type=aut" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/template/email/campaign"
);

let params = {
    "search": "asperiores",
    "status": "libero",
    "editor_type": "aut",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/template/email/campaign'
params = {
  'search': 'asperiores',
  'status': 'libero',
  'editor_type': 'aut',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": [
        {}
    ],
    "meta": {
        "pagination": {
            "total": 1,
            "count": 1,
            "per_page": 10,
            "current_page": 1,
            "total_pages": 1,
            "links": []
        }
    }
}

Request

GET api/panel/pkg/template/email/campaign

Query Parameters

search  optional
CAMPO DE BUSCA POR NOME OU ID.

status  optional
CAMPO DE BUSCA POR STATUS.

editor_type  optional
TEMPLATES PARA CADA TIPO DE EDITOR DE CAMPANHA.

Pkg\Template\Email\show

Retorna um ITEM para visualização com base nos parâmetros enviados.

alt text

REQUISIÇÃO AUTENTICADA.

Example request:


$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://api-app.iporto.com.br/api/panel/pkg/template/email/campaign/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c',
        ],
        'query' => [
            'id'=> '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
curl -X GET \
    -G "https://api-app.iporto.com.br/api/panel/pkg/template/email/campaign/1?id=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c"
const url = new URL(
    "https://api-app.iporto.com.br/api/panel/pkg/template/email/campaign/1"
);

let params = {
    "id": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));
import requests
import json

url = 'https://api-app.iporto.com.br/api/panel/pkg/template/email/campaign/1'
params = {
  'id': '1',
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer OU5ndE35GUCPNAz/lMqeOTELklycyF9fi1szfrJR66wzOWiLRSoMNRYHERRUCMBvAscQDDFO6wS3BqKmfk4jheiCZEuKhlS0jq4tFlQ7H9eNd9yPogqoEcN+lLwdOqAQno3RTxUaBRSpW7GFKt6unhFak4JfR6PVtD2l6eAxMcY58OHK8PLGxBb6T/zP1YNlzYrH8OP4gMvR0699yrzcOmB/xLrUOMGY8CctIjk5fImHRHmmCK71pvAm9t1ndZIB:2:3c'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (200):

{
    "data": {}
}

Request

GET api/panel/pkg/template/email/campaign/{id}

Query Parameters

id 
ID DO ITEM.