csoCodeCodeGet
Get CSO by CODE
/cso/code/{code}
Usage and SDK Samples
curl -X GET\
-H "Authorization: Basic [[basicHash]]"\
-H "Accept: application/json"\
"http://localhost:8080/api/v1/dames/cso/code/{code}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuth.setUsername("YOUR USERNAME");
basicAuth.setPassword("YOUR PASSWORD");
DefaultApi apiInstance = new DefaultApi();
String code = code_example; // String | Pass CSO CODE.
try {
CSO result = apiInstance.csoCodeCodeGet(code);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#csoCodeCodeGet");
e.printStackTrace();
}
}
}
import io.swagger.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String code = code_example; // String | Pass CSO CODE.
try {
CSO result = apiInstance.csoCodeCodeGet(code);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#csoCodeCodeGet");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: basicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
String *code = code_example; // Pass CSO CODE.
DefaultApi *apiInstance = [[DefaultApi alloc] init];
[apiInstance csoCodeCodeGetWith:code
completionHandler: ^(CSO output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var DamesApi = require('dames_api');
var defaultClient = DamesApi.ApiClient.instance;
// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME'
basicAuth.password = 'YOUR PASSWORD'
var api = new DamesApi.DefaultApi()
var code = code_example; // {{String}} Pass CSO CODE.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.csoCodeCodeGet(code, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class csoCodeCodeGetExample
{
public void main()
{
// Configure HTTP basic authorization: basicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new DefaultApi();
var code = code_example; // String | Pass CSO CODE.
try
{
CSO result = apiInstance.csoCodeCodeGet(code);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.csoCodeCodeGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: basicAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new Swagger\Client\ApiDefaultApi();
$code = code_example; // String | Pass CSO CODE.
try {
$result = $api_instance->csoCodeCodeGet($code);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->csoCodeCodeGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
# Configure HTTP basic authorization: basicAuth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $code = code_example; # String | Pass CSO CODE.
eval {
my $result = $api_instance->csoCodeCodeGet(code => $code);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->csoCodeCodeGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = swagger_client.DefaultApi()
code = code_example # String | Pass CSO CODE.
try:
api_response = api_instance.cso_code_code_get(code)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->csoCodeCodeGet: %s\n" % e)
Parameters
Name | Description |
---|---|
code* |
String
Pass CSO CODE.
Required
|