AS Server - API - LogisticProvider

Default

logisticProviderDisable

LogisticProvider_Disable


/LogisticProvider/Disable

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/LogisticProvider/Disable" \
 -d '{
  "LogisticProviderType" : 0
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<LogisticProviderRequest>
  <LogisticProviderType>123</LogisticProviderType>
</LogisticProviderRequest>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        LogisticProviderRequest logisticProviderRequest = {"LogisticProviderType":1}; // LogisticProviderRequest | 

        try {
            ActionResults result = apiInstance.logisticProviderDisable(logisticProviderRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#logisticProviderDisable");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final LogisticProviderRequest logisticProviderRequest = new LogisticProviderRequest(); // LogisticProviderRequest | 

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        LogisticProviderRequest logisticProviderRequest = {"LogisticProviderType":1}; // LogisticProviderRequest | 

        try {
            ActionResults result = apiInstance.logisticProviderDisable(logisticProviderRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#logisticProviderDisable");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
LogisticProviderRequest *logisticProviderRequest = {"LogisticProviderType":1}; //  (optional)

// LogisticProvider_Disable
[apiInstance logisticProviderDisableWith:logisticProviderRequest
              completionHandler: ^(ActionResults output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiLogisticProvider = require('as_server_api_logistic_provider');

// Create an instance of the API class
var api = new AsServerApiLogisticProvider.DefaultApi()
var opts = {
  'logisticProviderRequest': {"LogisticProviderType":1} // {LogisticProviderRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var logisticProviderRequest = new LogisticProviderRequest(); // LogisticProviderRequest |  (optional) 

            try {
                // LogisticProvider_Disable
                ActionResults result = apiInstance.logisticProviderDisable(logisticProviderRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.logisticProviderDisable: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$logisticProviderRequest = {"LogisticProviderType":1}; // LogisticProviderRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $logisticProviderRequest = WWW::OPenAPIClient::Object::LogisticProviderRequest->new(); # LogisticProviderRequest | 

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

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
logisticProviderRequest = {"LogisticProviderType":1} # LogisticProviderRequest |  (optional)

try:
    # LogisticProvider_Disable
    api_response = api_instance.logistic_provider_disable(logisticProviderRequest=logisticProviderRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->logisticProviderDisable: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let logisticProviderRequest = {"LogisticProviderType":1}; // LogisticProviderRequest

    let mut context = DefaultApi::Context::default();
    let result = client.logisticProviderDisable(logisticProviderRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
logisticProviderRequest

Responses


logisticProviderEnable

LogisticProvider_Enable


/LogisticProvider/Enable

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/LogisticProvider/Enable" \
 -d '{
  "LogisticProviderType" : 0
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<LogisticProviderRequest>
  <LogisticProviderType>123</LogisticProviderType>
</LogisticProviderRequest>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        LogisticProviderRequest logisticProviderRequest = {"LogisticProviderType":1}; // LogisticProviderRequest | 

        try {
            ActionResults result = apiInstance.logisticProviderEnable(logisticProviderRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#logisticProviderEnable");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final LogisticProviderRequest logisticProviderRequest = new LogisticProviderRequest(); // LogisticProviderRequest | 

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        LogisticProviderRequest logisticProviderRequest = {"LogisticProviderType":1}; // LogisticProviderRequest | 

        try {
            ActionResults result = apiInstance.logisticProviderEnable(logisticProviderRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#logisticProviderEnable");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
LogisticProviderRequest *logisticProviderRequest = {"LogisticProviderType":1}; //  (optional)

// LogisticProvider_Enable
[apiInstance logisticProviderEnableWith:logisticProviderRequest
              completionHandler: ^(ActionResults output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiLogisticProvider = require('as_server_api_logistic_provider');

// Create an instance of the API class
var api = new AsServerApiLogisticProvider.DefaultApi()
var opts = {
  'logisticProviderRequest': {"LogisticProviderType":1} // {LogisticProviderRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var logisticProviderRequest = new LogisticProviderRequest(); // LogisticProviderRequest |  (optional) 

            try {
                // LogisticProvider_Enable
                ActionResults result = apiInstance.logisticProviderEnable(logisticProviderRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.logisticProviderEnable: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$logisticProviderRequest = {"LogisticProviderType":1}; // LogisticProviderRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $logisticProviderRequest = WWW::OPenAPIClient::Object::LogisticProviderRequest->new(); # LogisticProviderRequest | 

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

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
logisticProviderRequest = {"LogisticProviderType":1} # LogisticProviderRequest |  (optional)

try:
    # LogisticProvider_Enable
    api_response = api_instance.logistic_provider_enable(logisticProviderRequest=logisticProviderRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->logisticProviderEnable: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let logisticProviderRequest = {"LogisticProviderType":1}; // LogisticProviderRequest

    let mut context = DefaultApi::Context::default();
    let result = client.logisticProviderEnable(logisticProviderRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
logisticProviderRequest

Responses


logisticProviderGetConfigs

LogisticProvider_GetConfigs


/LogisticProvider/GetConfigs

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/LogisticProvider/GetConfigs"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();

        try {
            ActionResults result = apiInstance.logisticProviderGetConfigs();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#logisticProviderGetConfigs");
            e.printStackTrace();
        }
    }
}


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

// LogisticProvider_GetConfigs
[apiInstance logisticProviderGetConfigsWithCompletionHandler: 
              ^(ActionResults output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiLogisticProvider = require('as_server_api_logistic_provider');

// Create an instance of the API class
var api = new AsServerApiLogisticProvider.DefaultApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.logisticProviderGetConfigs(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();

            try {
                // LogisticProvider_GetConfigs
                ActionResults result = apiInstance.logisticProviderGetConfigs();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.logisticProviderGetConfigs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();

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

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()

try:
    # LogisticProvider_GetConfigs
    api_response = api_instance.logistic_provider_get_configs()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->logisticProviderGetConfigs: %s\n" % e)
extern crate DefaultApi;

pub fn main() {

    let mut context = DefaultApi::Context::default();
    let result = client.logisticProviderGetConfigs(&context).wait();

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

Scopes

Parameters

Responses


logisticProviderGetProviders

LogisticProvider_GetProviders


/LogisticProvider/GetProviders

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/LogisticProvider/GetProviders"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();

        try {
            ActionResults result = apiInstance.logisticProviderGetProviders();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#logisticProviderGetProviders");
            e.printStackTrace();
        }
    }
}


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

// LogisticProvider_GetProviders
[apiInstance logisticProviderGetProvidersWithCompletionHandler: 
              ^(ActionResults output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiLogisticProvider = require('as_server_api_logistic_provider');

// Create an instance of the API class
var api = new AsServerApiLogisticProvider.DefaultApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.logisticProviderGetProviders(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();

            try {
                // LogisticProvider_GetProviders
                ActionResults result = apiInstance.logisticProviderGetProviders();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.logisticProviderGetProviders: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();

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

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()

try:
    # LogisticProvider_GetProviders
    api_response = api_instance.logistic_provider_get_providers()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->logisticProviderGetProviders: %s\n" % e)
extern crate DefaultApi;

pub fn main() {

    let mut context = DefaultApi::Context::default();
    let result = client.logisticProviderGetProviders(&context).wait();

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

Scopes

Parameters

Responses


logisticProviderTest

LogisticProvider_Test


/LogisticProvider/Test

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/LogisticProvider/Test" \
 -d '{
  "Config" : {
    "LogisticServiceType" : 0,
    "Description" : "Description",
    "LogisticServiceName" : "LogisticServiceName",
    "Instructions" : [ {
      "KeyName" : "KeyName",
      "ValueOptions" : [ "ValueOptions", "ValueOptions" ],
      "Description" : "Description",
      "FriendlyName" : "FriendlyName",
      "ValueType" : 6,
      "IsTriggerReconfigure" : true,
      "Value" : "Value",
      "IsReadOnly" : true
    }, {
      "KeyName" : "KeyName",
      "ValueOptions" : [ "ValueOptions", "ValueOptions" ],
      "Description" : "Description",
      "FriendlyName" : "FriendlyName",
      "ValueType" : 6,
      "IsTriggerReconfigure" : true,
      "Value" : "Value",
      "IsReadOnly" : true
    } ],
    "CanTestConnection" : true,
    "IsConnected" : true
  }
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<LogisticProviderConfigRequest>
  <null>
    <LogisticServiceType>123</LogisticServiceType>
    <LogisticServiceName>aeiou</LogisticServiceName>
    <Description>aeiou</Description>
    <IsConnected>true</IsConnected>
    <CanTestConnection>true</CanTestConnection>
  </null>
</LogisticProviderConfigRequest>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        LogisticProviderConfigRequest logisticProviderConfigRequest = {"Config":{"LogisticServiceType":1,"LogisticServiceName":"string","Description":"string","IsConnected":true,"Instructions":[{"KeyName":"string","FriendlyName":"string","Description":"string","Value":"string","ValueType":0,"ValueOptions":["string"],"IsReadOnly":true,"IsTriggerReconfigure":true}],"CanTestConnection":true}}; // LogisticProviderConfigRequest | 

        try {
            ActionResults_LogisticProviderConfigTestResponse_ result = apiInstance.logisticProviderTest(logisticProviderConfigRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#logisticProviderTest");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final LogisticProviderConfigRequest logisticProviderConfigRequest = new LogisticProviderConfigRequest(); // LogisticProviderConfigRequest | 

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        LogisticProviderConfigRequest logisticProviderConfigRequest = {"Config":{"LogisticServiceType":1,"LogisticServiceName":"string","Description":"string","IsConnected":true,"Instructions":[{"KeyName":"string","FriendlyName":"string","Description":"string","Value":"string","ValueType":0,"ValueOptions":["string"],"IsReadOnly":true,"IsTriggerReconfigure":true}],"CanTestConnection":true}}; // LogisticProviderConfigRequest | 

        try {
            ActionResults_LogisticProviderConfigTestResponse_ result = apiInstance.logisticProviderTest(logisticProviderConfigRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#logisticProviderTest");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
LogisticProviderConfigRequest *logisticProviderConfigRequest = {"Config":{"LogisticServiceType":1,"LogisticServiceName":"string","Description":"string","IsConnected":true,"Instructions":[{"KeyName":"string","FriendlyName":"string","Description":"string","Value":"string","ValueType":0,"ValueOptions":["string"],"IsReadOnly":true,"IsTriggerReconfigure":true}],"CanTestConnection":true}}; //  (optional)

// LogisticProvider_Test
[apiInstance logisticProviderTestWith:logisticProviderConfigRequest
              completionHandler: ^(ActionResults_LogisticProviderConfigTestResponse_ output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiLogisticProvider = require('as_server_api_logistic_provider');

// Create an instance of the API class
var api = new AsServerApiLogisticProvider.DefaultApi()
var opts = {
  'logisticProviderConfigRequest': {"Config":{"LogisticServiceType":1,"LogisticServiceName":"string","Description":"string","IsConnected":true,"Instructions":[{"KeyName":"string","FriendlyName":"string","Description":"string","Value":"string","ValueType":0,"ValueOptions":["string"],"IsReadOnly":true,"IsTriggerReconfigure":true}],"CanTestConnection":true}} // {LogisticProviderConfigRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var logisticProviderConfigRequest = new LogisticProviderConfigRequest(); // LogisticProviderConfigRequest |  (optional) 

            try {
                // LogisticProvider_Test
                ActionResults_LogisticProviderConfigTestResponse_ result = apiInstance.logisticProviderTest(logisticProviderConfigRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.logisticProviderTest: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$logisticProviderConfigRequest = {"Config":{"LogisticServiceType":1,"LogisticServiceName":"string","Description":"string","IsConnected":true,"Instructions":[{"KeyName":"string","FriendlyName":"string","Description":"string","Value":"string","ValueType":0,"ValueOptions":["string"],"IsReadOnly":true,"IsTriggerReconfigure":true}],"CanTestConnection":true}}; // LogisticProviderConfigRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $logisticProviderConfigRequest = WWW::OPenAPIClient::Object::LogisticProviderConfigRequest->new(); # LogisticProviderConfigRequest | 

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

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
logisticProviderConfigRequest = {"Config":{"LogisticServiceType":1,"LogisticServiceName":"string","Description":"string","IsConnected":true,"Instructions":[{"KeyName":"string","FriendlyName":"string","Description":"string","Value":"string","ValueType":0,"ValueOptions":["string"],"IsReadOnly":true,"IsTriggerReconfigure":true}],"CanTestConnection":true}} # LogisticProviderConfigRequest |  (optional)

try:
    # LogisticProvider_Test
    api_response = api_instance.logistic_provider_test(logisticProviderConfigRequest=logisticProviderConfigRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->logisticProviderTest: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let logisticProviderConfigRequest = {"Config":{"LogisticServiceType":1,"LogisticServiceName":"string","Description":"string","IsConnected":true,"Instructions":[{"KeyName":"string","FriendlyName":"string","Description":"string","Value":"string","ValueType":0,"ValueOptions":["string"],"IsReadOnly":true,"IsTriggerReconfigure":true}],"CanTestConnection":true}}; // LogisticProviderConfigRequest

    let mut context = DefaultApi::Context::default();
    let result = client.logisticProviderTest(logisticProviderConfigRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
logisticProviderConfigRequest

Responses


logisticProviderUpdate

LogisticProvider_Update


/LogisticProvider/Update

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 -H "Content-Type: application/json,text/json,application/xml,text/xml,application/x-www-form-urlencoded" \
 "https://api.dev.spenda.co/api/LogisticProvider/Update" \
 -d '{
  "Config" : {
    "LogisticServiceType" : 0,
    "Description" : "Description",
    "LogisticServiceName" : "LogisticServiceName",
    "Instructions" : [ {
      "KeyName" : "KeyName",
      "ValueOptions" : [ "ValueOptions", "ValueOptions" ],
      "Description" : "Description",
      "FriendlyName" : "FriendlyName",
      "ValueType" : 6,
      "IsTriggerReconfigure" : true,
      "Value" : "Value",
      "IsReadOnly" : true
    }, {
      "KeyName" : "KeyName",
      "ValueOptions" : [ "ValueOptions", "ValueOptions" ],
      "Description" : "Description",
      "FriendlyName" : "FriendlyName",
      "ValueType" : 6,
      "IsTriggerReconfigure" : true,
      "Value" : "Value",
      "IsReadOnly" : true
    } ],
    "CanTestConnection" : true,
    "IsConnected" : true
  }
}' \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '<LogisticProviderConfigRequest>
  <null>
    <LogisticServiceType>123</LogisticServiceType>
    <LogisticServiceName>aeiou</LogisticServiceName>
    <Description>aeiou</Description>
    <IsConnected>true</IsConnected>
    <CanTestConnection>true</CanTestConnection>
  </null>
</LogisticProviderConfigRequest>' \
 -d 'Custom MIME type example not yet supported: text/xml' \
 -d 'Custom MIME type example not yet supported: application/x-www-form-urlencoded'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;

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

public class DefaultApiExample {
    public static void main(String[] args) {

        // Create an instance of the API class
        DefaultApi apiInstance = new DefaultApi();
        LogisticProviderConfigRequest logisticProviderConfigRequest = {"Config":{"LogisticServiceType":1,"LogisticServiceName":"string","Description":"string","IsConnected":true,"Instructions":[{"KeyName":"string","FriendlyName":"string","Description":"string","Value":"string","ValueType":0,"ValueOptions":["string"],"IsReadOnly":true,"IsTriggerReconfigure":true}],"CanTestConnection":true}}; // LogisticProviderConfigRequest | 

        try {
            ActionResults result = apiInstance.logisticProviderUpdate(logisticProviderConfigRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#logisticProviderUpdate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final LogisticProviderConfigRequest logisticProviderConfigRequest = new LogisticProviderConfigRequest(); // LogisticProviderConfigRequest | 

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        LogisticProviderConfigRequest logisticProviderConfigRequest = {"Config":{"LogisticServiceType":1,"LogisticServiceName":"string","Description":"string","IsConnected":true,"Instructions":[{"KeyName":"string","FriendlyName":"string","Description":"string","Value":"string","ValueType":0,"ValueOptions":["string"],"IsReadOnly":true,"IsTriggerReconfigure":true}],"CanTestConnection":true}}; // LogisticProviderConfigRequest | 

        try {
            ActionResults result = apiInstance.logisticProviderUpdate(logisticProviderConfigRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#logisticProviderUpdate");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
LogisticProviderConfigRequest *logisticProviderConfigRequest = {"Config":{"LogisticServiceType":1,"LogisticServiceName":"string","Description":"string","IsConnected":true,"Instructions":[{"KeyName":"string","FriendlyName":"string","Description":"string","Value":"string","ValueType":0,"ValueOptions":["string"],"IsReadOnly":true,"IsTriggerReconfigure":true}],"CanTestConnection":true}}; //  (optional)

// LogisticProvider_Update
[apiInstance logisticProviderUpdateWith:logisticProviderConfigRequest
              completionHandler: ^(ActionResults output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiLogisticProvider = require('as_server_api_logistic_provider');

// Create an instance of the API class
var api = new AsServerApiLogisticProvider.DefaultApi()
var opts = {
  'logisticProviderConfigRequest': {"Config":{"LogisticServiceType":1,"LogisticServiceName":"string","Description":"string","IsConnected":true,"Instructions":[{"KeyName":"string","FriendlyName":"string","Description":"string","Value":"string","ValueType":0,"ValueOptions":["string"],"IsReadOnly":true,"IsTriggerReconfigure":true}],"CanTestConnection":true}} // {LogisticProviderConfigRequest} 
};

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var logisticProviderConfigRequest = new LogisticProviderConfigRequest(); // LogisticProviderConfigRequest |  (optional) 

            try {
                // LogisticProvider_Update
                ActionResults result = apiInstance.logisticProviderUpdate(logisticProviderConfigRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.logisticProviderUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$logisticProviderConfigRequest = {"Config":{"LogisticServiceType":1,"LogisticServiceName":"string","Description":"string","IsConnected":true,"Instructions":[{"KeyName":"string","FriendlyName":"string","Description":"string","Value":"string","ValueType":0,"ValueOptions":["string"],"IsReadOnly":true,"IsTriggerReconfigure":true}],"CanTestConnection":true}}; // LogisticProviderConfigRequest | 

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $logisticProviderConfigRequest = WWW::OPenAPIClient::Object::LogisticProviderConfigRequest->new(); # LogisticProviderConfigRequest | 

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

# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
logisticProviderConfigRequest = {"Config":{"LogisticServiceType":1,"LogisticServiceName":"string","Description":"string","IsConnected":true,"Instructions":[{"KeyName":"string","FriendlyName":"string","Description":"string","Value":"string","ValueType":0,"ValueOptions":["string"],"IsReadOnly":true,"IsTriggerReconfigure":true}],"CanTestConnection":true}} # LogisticProviderConfigRequest |  (optional)

try:
    # LogisticProvider_Update
    api_response = api_instance.logistic_provider_update(logisticProviderConfigRequest=logisticProviderConfigRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->logisticProviderUpdate: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let logisticProviderConfigRequest = {"Config":{"LogisticServiceType":1,"LogisticServiceName":"string","Description":"string","IsConnected":true,"Instructions":[{"KeyName":"string","FriendlyName":"string","Description":"string","Value":"string","ValueType":0,"ValueOptions":["string"],"IsReadOnly":true,"IsTriggerReconfigure":true}],"CanTestConnection":true}}; // LogisticProviderConfigRequest

    let mut context = DefaultApi::Context::default();
    let result = client.logisticProviderUpdate(logisticProviderConfigRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
logisticProviderConfigRequest

Responses