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 * |