configGetConfig
Config_GetConfig
/Config/GetConfig
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/Config/GetConfig" \
-d '{
"WebsiteID" : 1,
"GroupName" : "GroupName",
"ValueOptions" : [ "ValueOptions", "ValueOptions" ],
"Description" : "Description",
"FriendlyName" : "FriendlyName",
"ValueType" : "ValueType",
"UserRoleID" : 5,
"UserCanEdit" : true,
"ValueAsBool" : true,
"ValueAsDecimal" : 2.3021358869347655,
"GroupFriendlyName" : "GroupFriendlyName",
"IsEncrypted" : true,
"KeyName" : "KeyName",
"TenantID" : 6,
"ValueAsDateTime" : "2000-01-23T04:56:07.000+00:00",
"UserID" : 5,
"Value" : "Value",
"IsSystem" : true,
"ConfigID" : 0,
"IsReadOnly" : true
}' \
-d 'Custom MIME type example not yet supported: text/json' \
-d '<ConfigObject>
<ConfigID>123</ConfigID>
<TenantID>123</TenantID>
<WebsiteID>123</WebsiteID>
<GroupName>aeiou</GroupName>
<GroupFriendlyName>aeiou</GroupFriendlyName>
<KeyName>aeiou</KeyName>
<FriendlyName>aeiou</FriendlyName>
<Value>aeiou</Value>
<ValueType>aeiou</ValueType>
<ValueOptions>aeiou</ValueOptions>
<UserRoleID>123</UserRoleID>
<UserID>123</UserID>
<Description>aeiou</Description>
<UserCanEdit>true</UserCanEdit>
<IsReadOnly>true</IsReadOnly>
<IsSystem>true</IsSystem>
<ValueAsDecimal>3.149</ValueAsDecimal>
<ValueAsBool>true</ValueAsBool>
<ValueAsDateTime>2000-01-23T04:56:07.000Z</ValueAsDateTime>
<IsEncrypted>true</IsEncrypted>
</ConfigObject>' \
-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();
ConfigObject configObject = {"ConfigID":0,"TenantID":0,"WebsiteID":0,"GroupName":"string","GroupFriendlyName":"string","KeyName":"string","FriendlyName":"string","Value":"string","ValueType":"string","ValueOptions":["string"],"UserRoleID":0,"UserID":0,"Description":"string","UserCanEdit":true,"IsReadOnly":true,"IsSystem":true,"ValueAsDecimal":0,"ValueAsBool":true,"ValueAsDateTime":"string","IsEncrypted":true}; // ConfigObject |
try {
Object result = apiInstance.configGetConfig(configObject);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#configGetConfig");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final ConfigObject configObject = new ConfigObject(); // ConfigObject |
try {
final result = await api_instance.configGetConfig(configObject);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->configGetConfig: $e\n');
}
import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
ConfigObject configObject = {"ConfigID":0,"TenantID":0,"WebsiteID":0,"GroupName":"string","GroupFriendlyName":"string","KeyName":"string","FriendlyName":"string","Value":"string","ValueType":"string","ValueOptions":["string"],"UserRoleID":0,"UserID":0,"Description":"string","UserCanEdit":true,"IsReadOnly":true,"IsSystem":true,"ValueAsDecimal":0,"ValueAsBool":true,"ValueAsDateTime":"string","IsEncrypted":true}; // ConfigObject |
try {
Object result = apiInstance.configGetConfig(configObject);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#configGetConfig");
e.printStackTrace();
}
}
}
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
ConfigObject *configObject = {"ConfigID":0,"TenantID":0,"WebsiteID":0,"GroupName":"string","GroupFriendlyName":"string","KeyName":"string","FriendlyName":"string","Value":"string","ValueType":"string","ValueOptions":["string"],"UserRoleID":0,"UserID":0,"Description":"string","UserCanEdit":true,"IsReadOnly":true,"IsSystem":true,"ValueAsDecimal":0,"ValueAsBool":true,"ValueAsDateTime":"string","IsEncrypted":true}; // (optional)
// Config_GetConfig
[apiInstance configGetConfigWith:configObject
completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var AsServerApiConfig = require('as_server_api_config');
// Create an instance of the API class
var api = new AsServerApiConfig.DefaultApi()
var opts = {
'configObject': {"ConfigID":0,"TenantID":0,"WebsiteID":0,"GroupName":"string","GroupFriendlyName":"string","KeyName":"string","FriendlyName":"string","Value":"string","ValueType":"string","ValueOptions":["string"],"UserRoleID":0,"UserID":0,"Description":"string","UserCanEdit":true,"IsReadOnly":true,"IsSystem":true,"ValueAsDecimal":0,"ValueAsBool":true,"ValueAsDateTime":"string","IsEncrypted":true} // {ConfigObject}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.configGetConfig(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class configGetConfigExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new DefaultApi();
var configObject = new ConfigObject(); // ConfigObject | (optional)
try {
// Config_GetConfig
Object result = apiInstance.configGetConfig(configObject);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.configGetConfig: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$configObject = {"ConfigID":0,"TenantID":0,"WebsiteID":0,"GroupName":"string","GroupFriendlyName":"string","KeyName":"string","FriendlyName":"string","Value":"string","ValueType":"string","ValueOptions":["string"],"UserRoleID":0,"UserID":0,"Description":"string","UserCanEdit":true,"IsReadOnly":true,"IsSystem":true,"ValueAsDecimal":0,"ValueAsBool":true,"ValueAsDateTime":"string","IsEncrypted":true}; // ConfigObject |
try {
$result = $api_instance->configGetConfig($configObject);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->configGetConfig: ', $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 $configObject = WWW::OPenAPIClient::Object::ConfigObject->new(); # ConfigObject |
eval {
my $result = $api_instance->configGetConfig(configObject => $configObject);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->configGetConfig: $@\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()
configObject = {"ConfigID":0,"TenantID":0,"WebsiteID":0,"GroupName":"string","GroupFriendlyName":"string","KeyName":"string","FriendlyName":"string","Value":"string","ValueType":"string","ValueOptions":["string"],"UserRoleID":0,"UserID":0,"Description":"string","UserCanEdit":true,"IsReadOnly":true,"IsSystem":true,"ValueAsDecimal":0,"ValueAsBool":true,"ValueAsDateTime":"string","IsEncrypted":true} # ConfigObject | (optional)
try:
# Config_GetConfig
api_response = api_instance.config_get_config(configObject=configObject)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->configGetConfig: %s\n" % e)
extern crate DefaultApi;
pub fn main() {
let configObject = {"ConfigID":0,"TenantID":0,"WebsiteID":0,"GroupName":"string","GroupFriendlyName":"string","KeyName":"string","FriendlyName":"string","Value":"string","ValueType":"string","ValueOptions":["string"],"UserRoleID":0,"UserID":0,"Description":"string","UserCanEdit":true,"IsReadOnly":true,"IsSystem":true,"ValueAsDecimal":0,"ValueAsBool":true,"ValueAsDateTime":"string","IsEncrypted":true}; // ConfigObject
let mut context = DefaultApi::Context::default();
let result = client.configGetConfig(configObject, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
Body parameters
| Name | Description |
|---|---|
| configObject |