AI Lademittel

Nolo

predictLademittel

Get a lademittel prediction

Get a lademittel prediction based on dimension, volumes etc.


/predict

Usage and SDK Samples

curl -X POST \
 \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "https://ov-nolo.cloud.thoughtgang.de/predict/predict" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.NoloApi;

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

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

        // Configure OAuth2 access token for authorization: petstore_auth
        OAuth petstore_auth = (OAuth) defaultClient.getAuthentication("petstore_auth");
        petstore_auth.setAccessToken("YOUR ACCESS TOKEN");

        // Create an instance of the API class
        NoloApi apiInstance = new NoloApi();
        PredictRequest predictRequest = ; // PredictRequest | 

        try {
            parcel_response result = apiInstance.predictLademittel(predictRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NoloApi#predictLademittel");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final PredictRequest predictRequest = new PredictRequest(); // PredictRequest | 

try {
    final result = await api_instance.predictLademittel(predictRequest);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->predictLademittel: $e\n');
}

import org.openapitools.client.api.NoloApi;

public class NoloApiExample {
    public static void main(String[] args) {
        NoloApi apiInstance = new NoloApi();
        PredictRequest predictRequest = ; // PredictRequest | 

        try {
            parcel_response result = apiInstance.predictLademittel(predictRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NoloApi#predictLademittel");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure OAuth2 access token for authorization: (authentication scheme: petstore_auth)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];


// Create an instance of the API class
NoloApi *apiInstance = [[NoloApi alloc] init];
PredictRequest *predictRequest = ; // 

// Get a lademittel prediction
[apiInstance predictLademittelWith:predictRequest
              completionHandler: ^(parcel_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AiLademittel = require('ai_lademittel');
var defaultClient = AiLademittel.ApiClient.instance;

// Configure OAuth2 access token for authorization: petstore_auth
var petstore_auth = defaultClient.authentications['petstore_auth'];
petstore_auth.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new AiLademittel.NoloApi()
var predictRequest = ; // {PredictRequest} 

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

namespace Example
{
    public class predictLademittelExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: petstore_auth
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new NoloApi();
            var predictRequest = new PredictRequest(); // PredictRequest | 

            try {
                // Get a lademittel prediction
                parcel_response result = apiInstance.predictLademittel(predictRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling NoloApi.predictLademittel: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: petstore_auth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\NoloApi();
$predictRequest = ; // PredictRequest | 

try {
    $result = $api_instance->predictLademittel($predictRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling NoloApi->predictLademittel: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::NoloApi;

# Configure OAuth2 access token for authorization: petstore_auth
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::NoloApi->new();
my $predictRequest = WWW::OPenAPIClient::Object::PredictRequest->new(); # PredictRequest | 

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

# Configure OAuth2 access token for authorization: petstore_auth
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.NoloApi()
predictRequest =  # PredictRequest | 

try:
    # Get a lademittel prediction
    api_response = api_instance.predict_lademittel(predictRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling NoloApi->predictLademittel: %s\n" % e)
extern crate NoloApi;

pub fn main() {
    let predictRequest = ; // PredictRequest

    let mut context = NoloApi::Context::default();
    let result = client.predictLademittel(predictRequest, &context).wait();

    println!("{:?}", result);
}

Scopes

write:pets modify pets in your account
read:pets read your pets

Parameters

Body parameters
Name Description
predictRequest *

Update an existent pet in the store

Responses