cii2ubl
Converts a UN/CEFACT CII XML file to UBL
/mustang/cii2ubl
Usage and SDK Samples
curl -X POST\
-H "apikey: [[apiKey]]"\
-H "Authorization: Basic [[basicHash]]"\
\
-H "Accept: application/xml"\
-H "Content-Type: application/xml"\
"https://gw.usegroup.de:8243/mustang/1.7.1/mustang/cii2ubl"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MustangControllerApi;
import java.io.File;
import java.util.*;
public class MustangControllerApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
// Configure HTTP basic authorization: basic_auth
HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
basic_auth.setUsername("YOUR USERNAME");
basic_auth.setPassword("YOUR PASSWORD");
// Configure OAuth2 access token for authorization: default
OAuth default = (OAuth) defaultClient.getAuthentication("default");
default.setAccessToken("YOUR ACCESS TOKEN");
MustangControllerApi apiInstance = new MustangControllerApi();
String body = ; // String |
String uSERNAME = uSERNAME_example; // String |
try {
'String' result = apiInstance.cii2ubl(body, uSERNAME);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MustangControllerApi#cii2ubl");
e.printStackTrace();
}
}
}
import io.swagger.client.api.MustangControllerApi;
public class MustangControllerApiExample {
public static void main(String[] args) {
MustangControllerApi apiInstance = new MustangControllerApi();
String body = ; // String |
String uSERNAME = uSERNAME_example; // String |
try {
'String' result = apiInstance.cii2ubl(body, uSERNAME);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MustangControllerApi#cii2ubl");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: api_key)
[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 HTTP basic authorization (authentication scheme: basic_auth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure OAuth2 access token for authorization: (authentication scheme: default)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *body = ; //
String *uSERNAME = uSERNAME_example; // (optional)
MustangControllerApi *apiInstance = [[MustangControllerApi alloc] init];
// Converts a UN/CEFACT CII XML file to UBL
[apiInstance cii2ublWith:body
uSERNAME:uSERNAME
completionHandler: ^('String' output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var Mustangserver = require('mustangserver');
var defaultClient = Mustangserver.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix['apikey'] = "Token"
// Configure HTTP basic authorization: basic_auth
var basic_auth = defaultClient.authentications['basic_auth'];
basic_auth.username = 'YOUR USERNAME'
basic_auth.password = 'YOUR PASSWORD'
// Configure OAuth2 access token for authorization: default
var default = defaultClient.authentications['default'];
default.accessToken = "YOUR ACCESS TOKEN"
var api = new Mustangserver.MustangControllerApi()
var body = ; // {{String}}
var opts = {
'uSERNAME': uSERNAME_example // {{String}}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.cii2ubl(body, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class cii2ublExample
{
public void main()
{
// Configure API key authorization: api_key
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 HTTP basic authorization: basic_auth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
// Configure OAuth2 access token for authorization: default
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new MustangControllerApi();
var body = new String(); // String |
var uSERNAME = uSERNAME_example; // String | (optional)
try
{
// Converts a UN/CEFACT CII XML file to UBL
'String' result = apiInstance.cii2ubl(body, uSERNAME);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling MustangControllerApi.cii2ubl: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
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 HTTP basic authorization: basic_auth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure OAuth2 access token for authorization: default
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$api_instance = new Swagger\Client\ApiMustangControllerApi();
$body = ; // String |
$uSERNAME = uSERNAME_example; // String |
try {
$result = $api_instance->cii2ubl($body, $uSERNAME);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MustangControllerApi->cii2ubl: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MustangControllerApi;
# Configure API key authorization: api_key
$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 HTTP basic authorization: basic_auth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure OAuth2 access token for authorization: default
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
my $api_instance = WWW::SwaggerClient::MustangControllerApi->new();
my $body = WWW::SwaggerClient::Object::String->new(); # String |
my $uSERNAME = uSERNAME_example; # String |
eval {
my $result = $api_instance->cii2ubl(body => $body, uSERNAME => $uSERNAME);
print Dumper($result);
};
if ($@) {
warn "Exception when calling MustangControllerApi->cii2ubl: $@\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: api_key
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 HTTP basic authorization: basic_auth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: default
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = swagger_client.MustangControllerApi()
body = # String |
uSERNAME = uSERNAME_example # String | (optional)
try:
# Converts a UN/CEFACT CII XML file to UBL
api_response = api_instance.cii2ubl(body, uSERNAME=uSERNAME)
pprint(api_response)
except ApiException as e:
print("Exception when calling MustangControllerApi->cii2ubl: %s\n" % e)
Parameters
| Name | Description |
|---|---|
| USERNAME |
String
|
| Name | Description |
|---|---|
| body * |