API Frota GInfo

CTE

createCteRenner

Cadastra um novo CTE


/createCteRenner

Usage and SDK Samples

curl -X POST\
-H "token: [[apiKey]]"\
-H "Content-Type: application/json"\
"https://apifrota.ginfo.app.br/createCteRenner"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.CTEApi;

import java.io.File;
import java.util.*;

public class CTEApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: token
        ApiKeyAuth token = (ApiKeyAuth) defaultClient.getAuthentication("token");
        token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //token.setApiKeyPrefix("Token");

        CTEApi apiInstance = new CTEApi();
        CteRenner body = ; // CteRenner | 
        String token = token_example; // String | Token de autenticação
        try {
            apiInstance.createCteRenner(body, token);
        } catch (ApiException e) {
            System.err.println("Exception when calling CTEApi#createCteRenner");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.CTEApi;

public class CTEApiExample {

    public static void main(String[] args) {
        CTEApi apiInstance = new CTEApi();
        CteRenner body = ; // CteRenner | 
        String token = token_example; // String | Token de autenticação
        try {
            apiInstance.createCteRenner(body, token);
        } catch (ApiException e) {
            System.err.println("Exception when calling CTEApi#createCteRenner");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"token"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"token"];
CteRenner *body = ; // 
String *token = token_example; // Token de autenticação

CTEApi *apiInstance = [[CTEApi alloc] init];

// Cadastra um novo CTE
[apiInstance createCteRennerWith:body
    token:token
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiFrotaGInfo = require('api_frota_g_info');
var defaultClient = ApiFrotaGInfo.ApiClient.instance;

// Configure API key authorization: token
var token = defaultClient.authentications['token'];
token.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//token.apiKeyPrefix['token'] = "Token"

var api = new ApiFrotaGInfo.CTEApi()
var body = ; // {{CteRenner}} 
var token = token_example; // {{String}} Token de autenticação

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.createCteRenner(bodytoken, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createCteRennerExample
    {
        public void main()
        {

            // Configure API key authorization: token
            Configuration.Default.ApiKey.Add("token", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("token", "Bearer");

            var apiInstance = new CTEApi();
            var body = new CteRenner(); // CteRenner | 
            var token = token_example;  // String | Token de autenticação

            try
            {
                // Cadastra um novo CTE
                apiInstance.createCteRenner(body, token);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling CTEApi.createCteRenner: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: token
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');

$api_instance = new Swagger\Client\ApiCTEApi();
$body = ; // CteRenner | 
$token = token_example; // String | Token de autenticação

try {
    $api_instance->createCteRenner($body, $token);
} catch (Exception $e) {
    echo 'Exception when calling CTEApi->createCteRenner: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::CTEApi;

# Configure API key authorization: token
$WWW::SwaggerClient::Configuration::api_key->{'token'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'token'} = "Bearer";

my $api_instance = WWW::SwaggerClient::CTEApi->new();
my $body = WWW::SwaggerClient::Object::CteRenner->new(); # CteRenner | 
my $token = token_example; # String | Token de autenticação

eval { 
    $api_instance->createCteRenner(body => $body, token => $token);
};
if ($@) {
    warn "Exception when calling CTEApi->createCteRenner: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: token
swagger_client.configuration.api_key['token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['token'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.CTEApi()
body =  # CteRenner | 
token = token_example # String | Token de autenticação

try: 
    # Cadastra um novo CTE
    api_instance.create_cte_renner(body, token)
except ApiException as e:
    print("Exception when calling CTEApi->createCteRenner: %s\n" % e)

Parameters

Header parameters
Name Description
token*
String
Token de autenticação
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Criado com sucesso!

Status: 400 - Requisição inválida

Status: 401 - Token inválido


Checklist

getChecklist

Checklists de Conformidade realizados na data


/getChecklist

Usage and SDK Samples

curl -X GET\
-H "token: [[apiKey]]"\
-H "Accept: application/json"\
"https://apifrota.ginfo.app.br/getChecklist?data="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChecklistApi;

import java.io.File;
import java.util.*;

public class ChecklistApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: token
        ApiKeyAuth token = (ApiKeyAuth) defaultClient.getAuthentication("token");
        token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //token.setApiKeyPrefix("Token");

        ChecklistApi apiInstance = new ChecklistApi();
        String token = token_example; // String | Token de autenticação
        String data = data_example; // String | Data da busca
        try {
            array[ChecklistResponse] result = apiInstance.getChecklist(token, data);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChecklistApi#getChecklist");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChecklistApi;

public class ChecklistApiExample {

    public static void main(String[] args) {
        ChecklistApi apiInstance = new ChecklistApi();
        String token = token_example; // String | Token de autenticação
        String data = data_example; // String | Data da busca
        try {
            array[ChecklistResponse] result = apiInstance.getChecklist(token, data);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChecklistApi#getChecklist");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"token"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"token"];
String *token = token_example; // Token de autenticação
String *data = data_example; // Data da busca

ChecklistApi *apiInstance = [[ChecklistApi alloc] init];

// Checklists de Conformidade realizados na data
[apiInstance getChecklistWith:token
    data:data
              completionHandler: ^(array[ChecklistResponse] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiFrotaGInfo = require('api_frota_g_info');
var defaultClient = ApiFrotaGInfo.ApiClient.instance;

// Configure API key authorization: token
var token = defaultClient.authentications['token'];
token.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//token.apiKeyPrefix['token'] = "Token"

var api = new ApiFrotaGInfo.ChecklistApi()
var token = token_example; // {{String}} Token de autenticação
var data = data_example; // {{String}} Data da busca

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getChecklist(token, data, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getChecklistExample
    {
        public void main()
        {

            // Configure API key authorization: token
            Configuration.Default.ApiKey.Add("token", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("token", "Bearer");

            var apiInstance = new ChecklistApi();
            var token = token_example;  // String | Token de autenticação
            var data = data_example;  // String | Data da busca

            try
            {
                // Checklists de Conformidade realizados na data
                array[ChecklistResponse] result = apiInstance.getChecklist(token, data);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChecklistApi.getChecklist: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: token
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');

$api_instance = new Swagger\Client\ApiChecklistApi();
$token = token_example; // String | Token de autenticação
$data = data_example; // String | Data da busca

try {
    $result = $api_instance->getChecklist($token, $data);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChecklistApi->getChecklist: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChecklistApi;

# Configure API key authorization: token
$WWW::SwaggerClient::Configuration::api_key->{'token'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'token'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ChecklistApi->new();
my $token = token_example; # String | Token de autenticação
my $data = data_example; # String | Data da busca

eval { 
    my $result = $api_instance->getChecklist(token => $token, data => $data);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChecklistApi->getChecklist: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: token
swagger_client.configuration.api_key['token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['token'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ChecklistApi()
token = token_example # String | Token de autenticação
data = data_example # String | Data da busca

try: 
    # Checklists de Conformidade realizados na data
    api_response = api_instance.get_checklist(token, data)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChecklistApi->getChecklist: %s\n" % e)

Parameters

Header parameters
Name Description
token*
String
Token de autenticação
Required
Query parameters
Name Description
data*
String
Data da busca
Required

Responses

Status: 200 - Um objeto em JSON retornando a lista de CheckLists de Conformidade

Status: 400 - Erro genérico

Status: 401 - Data Inválida


getChecklistAvaliacao

Checklists realizados no período


/getChecklistAvaliacao

Usage and SDK Samples

curl -X GET\
-H "apiKey: [[apiKey]]"\
-H "token: [[apiKey]]"\
-H "Accept: application/json"\
"https://apifrota.ginfo.app.br/getChecklistAvaliacao?data_inicial=&data_final="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ChecklistApi;

import java.io.File;
import java.util.*;

public class ChecklistApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: apiKey
        ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey");
        apiKey.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apiKey.setApiKeyPrefix("Token");

        // Configure API key authorization: token
        ApiKeyAuth token = (ApiKeyAuth) defaultClient.getAuthentication("token");
        token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //token.setApiKeyPrefix("Token");

        ChecklistApi apiInstance = new ChecklistApi();
        String token = token_example; // String | Token de autenticação
        String apiKey = apiKey_example; // String | Token de identificação da empresa
        String dataInicial = dataInicial_example; // String | Data inicial da busca
        String dataFinal = dataFinal_example; // String | Data final da busca
        try {
            array[ChecklistAva] result = apiInstance.getChecklistAvaliacao(token, apiKey, dataInicial, dataFinal);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChecklistApi#getChecklistAvaliacao");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ChecklistApi;

public class ChecklistApiExample {

    public static void main(String[] args) {
        ChecklistApi apiInstance = new ChecklistApi();
        String token = token_example; // String | Token de autenticação
        String apiKey = apiKey_example; // String | Token de identificação da empresa
        String dataInicial = dataInicial_example; // String | Data inicial da busca
        String dataFinal = dataFinal_example; // String | Data final da busca
        try {
            array[ChecklistAva] result = apiInstance.getChecklistAvaliacao(token, apiKey, dataInicial, dataFinal);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ChecklistApi#getChecklistAvaliacao");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: apiKey)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apiKey"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apiKey"];
// Configure API key authorization: (authentication scheme: token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"token"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"token"];
String *token = token_example; // Token de autenticação
String *apiKey = apiKey_example; // Token de identificação da empresa
String *dataInicial = dataInicial_example; // Data inicial da busca
String *dataFinal = dataFinal_example; // Data final da busca

ChecklistApi *apiInstance = [[ChecklistApi alloc] init];

// Checklists realizados no período
[apiInstance getChecklistAvaliacaoWith:token
    apiKey:apiKey
    dataInicial:dataInicial
    dataFinal:dataFinal
              completionHandler: ^(array[ChecklistAva] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiFrotaGInfo = require('api_frota_g_info');
var defaultClient = ApiFrotaGInfo.ApiClient.instance;

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix['apiKey'] = "Token"

// Configure API key authorization: token
var token = defaultClient.authentications['token'];
token.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//token.apiKeyPrefix['token'] = "Token"

var api = new ApiFrotaGInfo.ChecklistApi()
var token = token_example; // {{String}} Token de autenticação
var apiKey = apiKey_example; // {{String}} Token de identificação da empresa
var dataInicial = dataInicial_example; // {{String}} Data inicial da busca
var dataFinal = dataFinal_example; // {{String}} Data final da busca

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getChecklistAvaliacao(token, apiKey, dataInicial, dataFinal, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getChecklistAvaliacaoExample
    {
        public void main()
        {

            // Configure API key authorization: apiKey
            Configuration.Default.ApiKey.Add("apiKey", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apiKey", "Bearer");
            // Configure API key authorization: token
            Configuration.Default.ApiKey.Add("token", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("token", "Bearer");

            var apiInstance = new ChecklistApi();
            var token = token_example;  // String | Token de autenticação
            var apiKey = apiKey_example;  // String | Token de identificação da empresa
            var dataInicial = dataInicial_example;  // String | Data inicial da busca
            var dataFinal = dataFinal_example;  // String | Data final da busca

            try
            {
                // Checklists realizados no período
                array[ChecklistAva] result = apiInstance.getChecklistAvaliacao(token, apiKey, dataInicial, dataFinal);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ChecklistApi.getChecklistAvaliacao: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apiKey
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apiKey', 'Bearer');
// Configure API key authorization: token
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');

$api_instance = new Swagger\Client\ApiChecklistApi();
$token = token_example; // String | Token de autenticação
$apiKey = apiKey_example; // String | Token de identificação da empresa
$dataInicial = dataInicial_example; // String | Data inicial da busca
$dataFinal = dataFinal_example; // String | Data final da busca

try {
    $result = $api_instance->getChecklistAvaliacao($token, $apiKey, $dataInicial, $dataFinal);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChecklistApi->getChecklistAvaliacao: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ChecklistApi;

# Configure API key authorization: apiKey
$WWW::SwaggerClient::Configuration::api_key->{'apiKey'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apiKey'} = "Bearer";
# Configure API key authorization: token
$WWW::SwaggerClient::Configuration::api_key->{'token'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'token'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ChecklistApi->new();
my $token = token_example; # String | Token de autenticação
my $apiKey = apiKey_example; # String | Token de identificação da empresa
my $dataInicial = dataInicial_example; # String | Data inicial da busca
my $dataFinal = dataFinal_example; # String | Data final da busca

eval { 
    my $result = $api_instance->getChecklistAvaliacao(token => $token, apiKey => $apiKey, dataInicial => $dataInicial, dataFinal => $dataFinal);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ChecklistApi->getChecklistAvaliacao: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apiKey
swagger_client.configuration.api_key['apiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apiKey'] = 'Bearer'
# Configure API key authorization: token
swagger_client.configuration.api_key['token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['token'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ChecklistApi()
token = token_example # String | Token de autenticação
apiKey = apiKey_example # String | Token de identificação da empresa
dataInicial = dataInicial_example # String | Data inicial da busca
dataFinal = dataFinal_example # String | Data final da busca

try: 
    # Checklists realizados no período
    api_response = api_instance.get_checklist_avaliacao(token, apiKey, dataInicial, dataFinal)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ChecklistApi->getChecklistAvaliacao: %s\n" % e)

Parameters

Header parameters
Name Description
token*
String
Token de autenticação
Required
apiKey*
String
Token de identificação da empresa
Required
Query parameters
Name Description
data_inicial*
String
Data inicial da busca
Required
data_final*
String
Data final da busca
Required

Responses

Status: 200 - Um objeto em JSON retornando uma lista de CheckLists

Status: 401 - Data Inválida

Status: 500 - Erro genérico


OrdemDeServio

getOrdemServico

Ordems de Serviço


/getOrdemServico

Usage and SDK Samples

curl -X GET\
-H "apiKey: [[apiKey]]"\
-H "token: [[apiKey]]"\
-H "Accept: application/json"\
"https://apifrota.ginfo.app.br/getOrdemServico?data="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrdemDeServioApi;

import java.io.File;
import java.util.*;

public class OrdemDeServioApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: apiKey
        ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey");
        apiKey.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apiKey.setApiKeyPrefix("Token");

        // Configure API key authorization: token
        ApiKeyAuth token = (ApiKeyAuth) defaultClient.getAuthentication("token");
        token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //token.setApiKeyPrefix("Token");

        OrdemDeServioApi apiInstance = new OrdemDeServioApi();
        String token = token_example; // String | Token de autenticação
        String apiKey = apiKey_example; // String | Token de identificação da empresa
        String data = data_example; // String | Data da busca
        try {
            array[OsResponse] result = apiInstance.getOrdemServico(token, apiKey, data);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdemDeServioApi#getOrdemServico");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrdemDeServioApi;

public class OrdemDeServioApiExample {

    public static void main(String[] args) {
        OrdemDeServioApi apiInstance = new OrdemDeServioApi();
        String token = token_example; // String | Token de autenticação
        String apiKey = apiKey_example; // String | Token de identificação da empresa
        String data = data_example; // String | Data da busca
        try {
            array[OsResponse] result = apiInstance.getOrdemServico(token, apiKey, data);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdemDeServioApi#getOrdemServico");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: apiKey)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apiKey"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apiKey"];
// Configure API key authorization: (authentication scheme: token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"token"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"token"];
String *token = token_example; // Token de autenticação
String *apiKey = apiKey_example; // Token de identificação da empresa
String *data = data_example; // Data da busca

OrdemDeServioApi *apiInstance = [[OrdemDeServioApi alloc] init];

// Ordems de Serviço
[apiInstance getOrdemServicoWith:token
    apiKey:apiKey
    data:data
              completionHandler: ^(array[OsResponse] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiFrotaGInfo = require('api_frota_g_info');
var defaultClient = ApiFrotaGInfo.ApiClient.instance;

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix['apiKey'] = "Token"

// Configure API key authorization: token
var token = defaultClient.authentications['token'];
token.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//token.apiKeyPrefix['token'] = "Token"

var api = new ApiFrotaGInfo.OrdemDeServioApi()
var token = token_example; // {{String}} Token de autenticação
var apiKey = apiKey_example; // {{String}} Token de identificação da empresa
var data = data_example; // {{String}} Data da busca

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getOrdemServico(token, apiKey, data, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getOrdemServicoExample
    {
        public void main()
        {

            // Configure API key authorization: apiKey
            Configuration.Default.ApiKey.Add("apiKey", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apiKey", "Bearer");
            // Configure API key authorization: token
            Configuration.Default.ApiKey.Add("token", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("token", "Bearer");

            var apiInstance = new OrdemDeServioApi();
            var token = token_example;  // String | Token de autenticação
            var apiKey = apiKey_example;  // String | Token de identificação da empresa
            var data = data_example;  // String | Data da busca

            try
            {
                // Ordems de Serviço
                array[OsResponse] result = apiInstance.getOrdemServico(token, apiKey, data);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrdemDeServioApi.getOrdemServico: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apiKey
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apiKey', 'Bearer');
// Configure API key authorization: token
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');

$api_instance = new Swagger\Client\ApiOrdemDeServioApi();
$token = token_example; // String | Token de autenticação
$apiKey = apiKey_example; // String | Token de identificação da empresa
$data = data_example; // String | Data da busca

try {
    $result = $api_instance->getOrdemServico($token, $apiKey, $data);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrdemDeServioApi->getOrdemServico: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::OrdemDeServioApi;

# Configure API key authorization: apiKey
$WWW::SwaggerClient::Configuration::api_key->{'apiKey'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apiKey'} = "Bearer";
# Configure API key authorization: token
$WWW::SwaggerClient::Configuration::api_key->{'token'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'token'} = "Bearer";

my $api_instance = WWW::SwaggerClient::OrdemDeServioApi->new();
my $token = token_example; # String | Token de autenticação
my $apiKey = apiKey_example; # String | Token de identificação da empresa
my $data = data_example; # String | Data da busca

eval { 
    my $result = $api_instance->getOrdemServico(token => $token, apiKey => $apiKey, data => $data);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OrdemDeServioApi->getOrdemServico: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apiKey
swagger_client.configuration.api_key['apiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apiKey'] = 'Bearer'
# Configure API key authorization: token
swagger_client.configuration.api_key['token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['token'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.OrdemDeServioApi()
token = token_example # String | Token de autenticação
apiKey = apiKey_example # String | Token de identificação da empresa
data = data_example # String | Data da busca

try: 
    # Ordems de Serviço
    api_response = api_instance.get_ordem_servico(token, apiKey, data)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrdemDeServioApi->getOrdemServico: %s\n" % e)

Parameters

Header parameters
Name Description
token*
String
Token de autenticação
Required
apiKey*
String
Token de identificação da empresa
Required
Query parameters
Name Description
data*
String
Data da busca
Required

Responses

Status: 200 - Um objeto em JSON retornando a lista de OS

Status: 401 - Data Inválida

Status: 500 - Erro genérico


getOrdemServicoCoopercarga

Ordems de serviço (Apenas Coopercarga)


/getOrdemServicoCoopercarga

Usage and SDK Samples

curl -X GET\
-H "token: [[apiKey]]"\
-H "Accept: application/json"\
"https://apifrota.ginfo.app.br/getOrdemServicoCoopercarga?data="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrdemDeServioApi;

import java.io.File;
import java.util.*;

public class OrdemDeServioApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: token
        ApiKeyAuth token = (ApiKeyAuth) defaultClient.getAuthentication("token");
        token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //token.setApiKeyPrefix("Token");

        OrdemDeServioApi apiInstance = new OrdemDeServioApi();
        String token = token_example; // String | Token de autenticação
        String data = data_example; // String | Data da busca
        try {
            array[OsResponse] result = apiInstance.getOrdemServicoCoopercarga(token, data);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdemDeServioApi#getOrdemServicoCoopercarga");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrdemDeServioApi;

public class OrdemDeServioApiExample {

    public static void main(String[] args) {
        OrdemDeServioApi apiInstance = new OrdemDeServioApi();
        String token = token_example; // String | Token de autenticação
        String data = data_example; // String | Data da busca
        try {
            array[OsResponse] result = apiInstance.getOrdemServicoCoopercarga(token, data);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrdemDeServioApi#getOrdemServicoCoopercarga");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"token"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"token"];
String *token = token_example; // Token de autenticação
String *data = data_example; // Data da busca

OrdemDeServioApi *apiInstance = [[OrdemDeServioApi alloc] init];

// Ordems de serviço (Apenas Coopercarga)
[apiInstance getOrdemServicoCoopercargaWith:token
    data:data
              completionHandler: ^(array[OsResponse] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiFrotaGInfo = require('api_frota_g_info');
var defaultClient = ApiFrotaGInfo.ApiClient.instance;

// Configure API key authorization: token
var token = defaultClient.authentications['token'];
token.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//token.apiKeyPrefix['token'] = "Token"

var api = new ApiFrotaGInfo.OrdemDeServioApi()
var token = token_example; // {{String}} Token de autenticação
var data = data_example; // {{String}} Data da busca

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getOrdemServicoCoopercarga(token, data, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getOrdemServicoCoopercargaExample
    {
        public void main()
        {

            // Configure API key authorization: token
            Configuration.Default.ApiKey.Add("token", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("token", "Bearer");

            var apiInstance = new OrdemDeServioApi();
            var token = token_example;  // String | Token de autenticação
            var data = data_example;  // String | Data da busca

            try
            {
                // Ordems de serviço (Apenas Coopercarga)
                array[OsResponse] result = apiInstance.getOrdemServicoCoopercarga(token, data);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrdemDeServioApi.getOrdemServicoCoopercarga: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: token
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');

$api_instance = new Swagger\Client\ApiOrdemDeServioApi();
$token = token_example; // String | Token de autenticação
$data = data_example; // String | Data da busca

try {
    $result = $api_instance->getOrdemServicoCoopercarga($token, $data);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrdemDeServioApi->getOrdemServicoCoopercarga: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::OrdemDeServioApi;

# Configure API key authorization: token
$WWW::SwaggerClient::Configuration::api_key->{'token'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'token'} = "Bearer";

my $api_instance = WWW::SwaggerClient::OrdemDeServioApi->new();
my $token = token_example; # String | Token de autenticação
my $data = data_example; # String | Data da busca

eval { 
    my $result = $api_instance->getOrdemServicoCoopercarga(token => $token, data => $data);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OrdemDeServioApi->getOrdemServicoCoopercarga: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: token
swagger_client.configuration.api_key['token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['token'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.OrdemDeServioApi()
token = token_example # String | Token de autenticação
data = data_example # String | Data da busca

try: 
    # Ordems de serviço (Apenas Coopercarga)
    api_response = api_instance.get_ordem_servico_coopercarga(token, data)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrdemDeServioApi->getOrdemServicoCoopercarga: %s\n" % e)

Parameters

Header parameters
Name Description
token*
String
Token de autenticação
Required
Query parameters
Name Description
data*
String
Data da busca
Required

Responses

Status: 200 - Um objeto em JSON retornando a lista de OS

Status: 401 - Data Inválida

Status: 500 - Erro genérico


Placas

getPlacas

Placas


/getPlacas

Usage and SDK Samples

curl -X GET\
-H "apiKey: [[apiKey]]"\
-H "token: [[apiKey]]"\
-H "Accept: application/json"\
"https://apifrota.ginfo.app.br/getPlacas"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PlacasApi;

import java.io.File;
import java.util.*;

public class PlacasApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: apiKey
        ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey");
        apiKey.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apiKey.setApiKeyPrefix("Token");

        // Configure API key authorization: token
        ApiKeyAuth token = (ApiKeyAuth) defaultClient.getAuthentication("token");
        token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //token.setApiKeyPrefix("Token");

        PlacasApi apiInstance = new PlacasApi();
        String apiKey = apiKey_example; // String | Token de identificação da empresa
        String token = token_example; // String | Token de autenticação
        try {
            array[Placas] result = apiInstance.getPlacas(apiKey, token);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlacasApi#getPlacas");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PlacasApi;

public class PlacasApiExample {

    public static void main(String[] args) {
        PlacasApi apiInstance = new PlacasApi();
        String apiKey = apiKey_example; // String | Token de identificação da empresa
        String token = token_example; // String | Token de autenticação
        try {
            array[Placas] result = apiInstance.getPlacas(apiKey, token);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PlacasApi#getPlacas");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: apiKey)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apiKey"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apiKey"];
// Configure API key authorization: (authentication scheme: token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"token"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"token"];
String *apiKey = apiKey_example; // Token de identificação da empresa
String *token = token_example; // Token de autenticação

PlacasApi *apiInstance = [[PlacasApi alloc] init];

// Placas
[apiInstance getPlacasWith:apiKey
    token:token
              completionHandler: ^(array[Placas] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiFrotaGInfo = require('api_frota_g_info');
var defaultClient = ApiFrotaGInfo.ApiClient.instance;

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix['apiKey'] = "Token"

// Configure API key authorization: token
var token = defaultClient.authentications['token'];
token.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//token.apiKeyPrefix['token'] = "Token"

var api = new ApiFrotaGInfo.PlacasApi()
var apiKey = apiKey_example; // {{String}} Token de identificação da empresa
var token = token_example; // {{String}} Token de autenticação

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPlacas(apiKey, token, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPlacasExample
    {
        public void main()
        {

            // Configure API key authorization: apiKey
            Configuration.Default.ApiKey.Add("apiKey", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apiKey", "Bearer");
            // Configure API key authorization: token
            Configuration.Default.ApiKey.Add("token", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("token", "Bearer");

            var apiInstance = new PlacasApi();
            var apiKey = apiKey_example;  // String | Token de identificação da empresa
            var token = token_example;  // String | Token de autenticação

            try
            {
                // Placas
                array[Placas] result = apiInstance.getPlacas(apiKey, token);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PlacasApi.getPlacas: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apiKey
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apiKey', 'Bearer');
// Configure API key authorization: token
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');

$api_instance = new Swagger\Client\ApiPlacasApi();
$apiKey = apiKey_example; // String | Token de identificação da empresa
$token = token_example; // String | Token de autenticação

try {
    $result = $api_instance->getPlacas($apiKey, $token);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PlacasApi->getPlacas: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PlacasApi;

# Configure API key authorization: apiKey
$WWW::SwaggerClient::Configuration::api_key->{'apiKey'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apiKey'} = "Bearer";
# Configure API key authorization: token
$WWW::SwaggerClient::Configuration::api_key->{'token'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'token'} = "Bearer";

my $api_instance = WWW::SwaggerClient::PlacasApi->new();
my $apiKey = apiKey_example; # String | Token de identificação da empresa
my $token = token_example; # String | Token de autenticação

eval { 
    my $result = $api_instance->getPlacas(apiKey => $apiKey, token => $token);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PlacasApi->getPlacas: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apiKey
swagger_client.configuration.api_key['apiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apiKey'] = 'Bearer'
# Configure API key authorization: token
swagger_client.configuration.api_key['token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['token'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.PlacasApi()
apiKey = apiKey_example # String | Token de identificação da empresa
token = token_example # String | Token de autenticação

try: 
    # Placas
    api_response = api_instance.get_placas(apiKey, token)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PlacasApi->getPlacas: %s\n" % e)

Parameters

Header parameters
Name Description
apiKey*
String
Token de identificação da empresa
Required
token*
String
Token de autenticação
Required

Responses

Status: 200 - Um objeto em JSON retornando uma lista de placas

Status: 401 - apiKey inválida


Projetos

getProjetos

Projetos


/getProjetos

Usage and SDK Samples

curl -X GET\
-H "apiKey: [[apiKey]]"\
-H "Accept: application/json"\
"https://apifrota.ginfo.app.br/getProjetos"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProjetosApi;

import java.io.File;
import java.util.*;

public class ProjetosApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: apiKey
        ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey");
        apiKey.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apiKey.setApiKeyPrefix("Token");

        ProjetosApi apiInstance = new ProjetosApi();
        String apiKey = apiKey_example; // String | Token de identificação da empresa
        try {
            array[Projeto] result = apiInstance.getProjetos(apiKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjetosApi#getProjetos");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProjetosApi;

public class ProjetosApiExample {

    public static void main(String[] args) {
        ProjetosApi apiInstance = new ProjetosApi();
        String apiKey = apiKey_example; // String | Token de identificação da empresa
        try {
            array[Projeto] result = apiInstance.getProjetos(apiKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjetosApi#getProjetos");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: apiKey)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apiKey"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apiKey"];
String *apiKey = apiKey_example; // Token de identificação da empresa

ProjetosApi *apiInstance = [[ProjetosApi alloc] init];

// Projetos
[apiInstance getProjetosWith:apiKey
              completionHandler: ^(array[Projeto] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiFrotaGInfo = require('api_frota_g_info');
var defaultClient = ApiFrotaGInfo.ApiClient.instance;

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix['apiKey'] = "Token"

var api = new ApiFrotaGInfo.ProjetosApi()
var apiKey = apiKey_example; // {{String}} Token de identificação da empresa

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getProjetos(apiKey, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getProjetosExample
    {
        public void main()
        {

            // Configure API key authorization: apiKey
            Configuration.Default.ApiKey.Add("apiKey", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apiKey", "Bearer");

            var apiInstance = new ProjetosApi();
            var apiKey = apiKey_example;  // String | Token de identificação da empresa

            try
            {
                // Projetos
                array[Projeto] result = apiInstance.getProjetos(apiKey);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ProjetosApi.getProjetos: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apiKey
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apiKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apiKey', 'Bearer');

$api_instance = new Swagger\Client\ApiProjetosApi();
$apiKey = apiKey_example; // String | Token de identificação da empresa

try {
    $result = $api_instance->getProjetos($apiKey);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjetosApi->getProjetos: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ProjetosApi;

# Configure API key authorization: apiKey
$WWW::SwaggerClient::Configuration::api_key->{'apiKey'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apiKey'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ProjetosApi->new();
my $apiKey = apiKey_example; # String | Token de identificação da empresa

eval { 
    my $result = $api_instance->getProjetos(apiKey => $apiKey);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjetosApi->getProjetos: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apiKey
swagger_client.configuration.api_key['apiKey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apiKey'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ProjetosApi()
apiKey = apiKey_example # String | Token de identificação da empresa

try: 
    # Projetos
    api_response = api_instance.get_projetos(apiKey)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjetosApi->getProjetos: %s\n" % e)

Parameters

Header parameters
Name Description
apiKey*
String
Token de identificação da empresa
Required

Responses

Status: 200 - Um objeto em JSON retornando a lista de Projetos

Status: 401 - apiKey inválida


Prolog

createInspecao

Cadastra Inspeção


/createInspecao

Usage and SDK Samples

curl -X POST\
-H "token: [[apiKey]]"\
-H "Content-Type: application/json"\
"https://apifrota.ginfo.app.br/createInspecao"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PrologApi;

import java.io.File;
import java.util.*;

public class PrologApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: token
        ApiKeyAuth token = (ApiKeyAuth) defaultClient.getAuthentication("token");
        token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //token.setApiKeyPrefix("Token");

        PrologApi apiInstance = new PrologApi();
        TireInspection body = ; // TireInspection | 
        String token = token_example; // String | Token de autenticação
        try {
            apiInstance.createInspecao(body, token);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrologApi#createInspecao");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PrologApi;

public class PrologApiExample {

    public static void main(String[] args) {
        PrologApi apiInstance = new PrologApi();
        TireInspection body = ; // TireInspection | 
        String token = token_example; // String | Token de autenticação
        try {
            apiInstance.createInspecao(body, token);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrologApi#createInspecao");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"token"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"token"];
TireInspection *body = ; // 
String *token = token_example; // Token de autenticação

PrologApi *apiInstance = [[PrologApi alloc] init];

// Cadastra Inspeção
[apiInstance createInspecaoWith:body
    token:token
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiFrotaGInfo = require('api_frota_g_info');
var defaultClient = ApiFrotaGInfo.ApiClient.instance;

// Configure API key authorization: token
var token = defaultClient.authentications['token'];
token.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//token.apiKeyPrefix['token'] = "Token"

var api = new ApiFrotaGInfo.PrologApi()
var body = ; // {{TireInspection}} 
var token = token_example; // {{String}} Token de autenticação

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.createInspecao(bodytoken, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createInspecaoExample
    {
        public void main()
        {

            // Configure API key authorization: token
            Configuration.Default.ApiKey.Add("token", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("token", "Bearer");

            var apiInstance = new PrologApi();
            var body = new TireInspection(); // TireInspection | 
            var token = token_example;  // String | Token de autenticação

            try
            {
                // Cadastra Inspeção
                apiInstance.createInspecao(body, token);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PrologApi.createInspecao: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: token
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');

$api_instance = new Swagger\Client\ApiPrologApi();
$body = ; // TireInspection | 
$token = token_example; // String | Token de autenticação

try {
    $api_instance->createInspecao($body, $token);
} catch (Exception $e) {
    echo 'Exception when calling PrologApi->createInspecao: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PrologApi;

# Configure API key authorization: token
$WWW::SwaggerClient::Configuration::api_key->{'token'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'token'} = "Bearer";

my $api_instance = WWW::SwaggerClient::PrologApi->new();
my $body = WWW::SwaggerClient::Object::TireInspection->new(); # TireInspection | 
my $token = token_example; # String | Token de autenticação

eval { 
    $api_instance->createInspecao(body => $body, token => $token);
};
if ($@) {
    warn "Exception when calling PrologApi->createInspecao: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: token
swagger_client.configuration.api_key['token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['token'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.PrologApi()
body =  # TireInspection | 
token = token_example # String | Token de autenticação

try: 
    # Cadastra Inspeção
    api_instance.create_inspecao(body, token)
except ApiException as e:
    print("Exception when calling PrologApi->createInspecao: %s\n" % e)

Parameters

Header parameters
Name Description
token*
String
Token de autenticação
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Criado com sucesso!

Status: 400 - Requisição inválida

Status: 401 - Token inválido


createMovimentacao

Cadastra Movimentação


/createMovimentacao

Usage and SDK Samples

curl -X POST\
-H "token: [[apiKey]]"\
-H "Content-Type: application/json"\
"https://apifrota.ginfo.app.br/createMovimentacao"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PrologApi;

import java.io.File;
import java.util.*;

public class PrologApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: token
        ApiKeyAuth token = (ApiKeyAuth) defaultClient.getAuthentication("token");
        token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //token.setApiKeyPrefix("Token");

        PrologApi apiInstance = new PrologApi();
        TireMovementContent body = ; // TireMovementContent | 
        String token = token_example; // String | Token de autenticação
        try {
            apiInstance.createMovimentacao(body, token);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrologApi#createMovimentacao");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PrologApi;

public class PrologApiExample {

    public static void main(String[] args) {
        PrologApi apiInstance = new PrologApi();
        TireMovementContent body = ; // TireMovementContent | 
        String token = token_example; // String | Token de autenticação
        try {
            apiInstance.createMovimentacao(body, token);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrologApi#createMovimentacao");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"token"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"token"];
TireMovementContent *body = ; // 
String *token = token_example; // Token de autenticação

PrologApi *apiInstance = [[PrologApi alloc] init];

// Cadastra Movimentação
[apiInstance createMovimentacaoWith:body
    token:token
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiFrotaGInfo = require('api_frota_g_info');
var defaultClient = ApiFrotaGInfo.ApiClient.instance;

// Configure API key authorization: token
var token = defaultClient.authentications['token'];
token.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//token.apiKeyPrefix['token'] = "Token"

var api = new ApiFrotaGInfo.PrologApi()
var body = ; // {{TireMovementContent}} 
var token = token_example; // {{String}} Token de autenticação

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.createMovimentacao(bodytoken, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createMovimentacaoExample
    {
        public void main()
        {

            // Configure API key authorization: token
            Configuration.Default.ApiKey.Add("token", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("token", "Bearer");

            var apiInstance = new PrologApi();
            var body = new TireMovementContent(); // TireMovementContent | 
            var token = token_example;  // String | Token de autenticação

            try
            {
                // Cadastra Movimentação
                apiInstance.createMovimentacao(body, token);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PrologApi.createMovimentacao: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: token
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');

$api_instance = new Swagger\Client\ApiPrologApi();
$body = ; // TireMovementContent | 
$token = token_example; // String | Token de autenticação

try {
    $api_instance->createMovimentacao($body, $token);
} catch (Exception $e) {
    echo 'Exception when calling PrologApi->createMovimentacao: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PrologApi;

# Configure API key authorization: token
$WWW::SwaggerClient::Configuration::api_key->{'token'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'token'} = "Bearer";

my $api_instance = WWW::SwaggerClient::PrologApi->new();
my $body = WWW::SwaggerClient::Object::TireMovementContent->new(); # TireMovementContent | 
my $token = token_example; # String | Token de autenticação

eval { 
    $api_instance->createMovimentacao(body => $body, token => $token);
};
if ($@) {
    warn "Exception when calling PrologApi->createMovimentacao: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: token
swagger_client.configuration.api_key['token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['token'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.PrologApi()
body =  # TireMovementContent | 
token = token_example # String | Token de autenticação

try: 
    # Cadastra Movimentação
    api_instance.create_movimentacao(body, token)
except ApiException as e:
    print("Exception when calling PrologApi->createMovimentacao: %s\n" % e)

Parameters

Header parameters
Name Description
token*
String
Token de autenticação
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Criado com sucesso!

Status: 400 - Requisição inválida

Status: 401 - Token inválido


createPneu

Cadastra um Pneu


/createPneu

Usage and SDK Samples

curl -X POST\
-H "token: [[apiKey]]"\
-H "Content-Type: application/json"\
"https://apifrota.ginfo.app.br/createPneu"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PrologApi;

import java.io.File;
import java.util.*;

public class PrologApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: token
        ApiKeyAuth token = (ApiKeyAuth) defaultClient.getAuthentication("token");
        token.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //token.setApiKeyPrefix("Token");

        PrologApi apiInstance = new PrologApi();
        Tire body = ; // Tire | 
        String token = token_example; // String | Token de autenticação
        try {
            apiInstance.createPneu(body, token);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrologApi#createPneu");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PrologApi;

public class PrologApiExample {

    public static void main(String[] args) {
        PrologApi apiInstance = new PrologApi();
        Tire body = ; // Tire | 
        String token = token_example; // String | Token de autenticação
        try {
            apiInstance.createPneu(body, token);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrologApi#createPneu");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: token)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"token"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"token"];
Tire *body = ; // 
String *token = token_example; // Token de autenticação

PrologApi *apiInstance = [[PrologApi alloc] init];

// Cadastra um Pneu
[apiInstance createPneuWith:body
    token:token
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var ApiFrotaGInfo = require('api_frota_g_info');
var defaultClient = ApiFrotaGInfo.ApiClient.instance;

// Configure API key authorization: token
var token = defaultClient.authentications['token'];
token.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//token.apiKeyPrefix['token'] = "Token"

var api = new ApiFrotaGInfo.PrologApi()
var body = ; // {{Tire}} 
var token = token_example; // {{String}} Token de autenticação

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.createPneu(bodytoken, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createPneuExample
    {
        public void main()
        {

            // Configure API key authorization: token
            Configuration.Default.ApiKey.Add("token", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("token", "Bearer");

            var apiInstance = new PrologApi();
            var body = new Tire(); // Tire | 
            var token = token_example;  // String | Token de autenticação

            try
            {
                // Cadastra um Pneu
                apiInstance.createPneu(body, token);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PrologApi.createPneu: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: token
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');

$api_instance = new Swagger\Client\ApiPrologApi();
$body = ; // Tire | 
$token = token_example; // String | Token de autenticação

try {
    $api_instance->createPneu($body, $token);
} catch (Exception $e) {
    echo 'Exception when calling PrologApi->createPneu: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PrologApi;

# Configure API key authorization: token
$WWW::SwaggerClient::Configuration::api_key->{'token'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'token'} = "Bearer";

my $api_instance = WWW::SwaggerClient::PrologApi->new();
my $body = WWW::SwaggerClient::Object::Tire->new(); # Tire | 
my $token = token_example; # String | Token de autenticação

eval { 
    $api_instance->createPneu(body => $body, token => $token);
};
if ($@) {
    warn "Exception when calling PrologApi->createPneu: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: token
swagger_client.configuration.api_key['token'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['token'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.PrologApi()
body =  # Tire | 
token = token_example # String | Token de autenticação

try: 
    # Cadastra um Pneu
    api_instance.create_pneu(body, token)
except ApiException as e:
    print("Exception when calling PrologApi->createPneu: %s\n" % e)

Parameters

Header parameters
Name Description
token*
String
Token de autenticação
Required
Body parameters
Name Description
body *

Responses

Status: 200 - Criado com sucesso!

Status: 400 - Requisição inválida

Status: 401 - Token inválido