AS Server - API - Config

Default

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

Responses


configGetConfigsCollection

Config_GetConfigsCollection


/Config/GetConfigsCollection

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/Config/GetConfigsCollection?group=group_example"
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();
        String group = group_example; // String | 

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

final api_instance = DefaultApi();

final String group = new String(); // String | 

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

import org.openapitools.client.api.DefaultApi;

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

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


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *group = group_example; //  (default to null)

// Config_GetConfigsCollection
[apiInstance configGetConfigsCollectionWith:group
              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 group = group_example; // {String} 

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var group = group_example;  // String |  (default to null)

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

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

try {
    $result = $api_instance->configGetConfigsCollection($group);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->configGetConfigsCollection: ', $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 $group = group_example; # String | 

eval {
    my $result = $api_instance->configGetConfigsCollection(group => $group);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->configGetConfigsCollection: $@\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()
group = group_example # String |  (default to null)

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

pub fn main() {
    let group = group_example; // String

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

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

Scopes

Parameters

Query parameters
Name Description
group*
String
Required

Responses


configGetGroup

Config_GetGroup


/Config/GetGroup

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/Config/GetGroup?group=group_example&id=56"
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();
        String group = group_example; // String | 
        Integer id = 56; // Integer | Format - int32.

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

final api_instance = DefaultApi();

final String group = new String(); // String | 
final Integer id = new Integer(); // Integer | Format - int32.

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String group = group_example; // String | 
        Integer id = 56; // Integer | Format - int32.

        try {
            Object result = apiInstance.configGetGroup(group, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#configGetGroup");
            e.printStackTrace();
        }
    }
}


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *group = group_example; //  (default to null)
Integer *id = 56; // Format - int32. (default to null)

// Config_GetGroup
[apiInstance configGetGroupWith:group
    id:id
              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 group = group_example; // {String} 
var id = 56; // {Integer} Format - int32.

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

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

            // Create an instance of the API class
            var apiInstance = new DefaultApi();
            var group = group_example;  // String |  (default to null)
            var id = 56;  // Integer | Format - int32. (default to null)

            try {
                // Config_GetGroup
                Object result = apiInstance.configGetGroup(group, id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.configGetGroup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$group = group_example; // String | 
$id = 56; // Integer | Format - int32.

try {
    $result = $api_instance->configGetGroup($group, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->configGetGroup: ', $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 $group = group_example; # String | 
my $id = 56; # Integer | Format - int32.

eval {
    my $result = $api_instance->configGetGroup(group => $group, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->configGetGroup: $@\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()
group = group_example # String |  (default to null)
id = 56 # Integer | Format - int32. (default to null)

try:
    # Config_GetGroup
    api_response = api_instance.config_get_group(group, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->configGetGroup: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let group = group_example; // String
    let id = 56; // Integer

    let mut context = DefaultApi::Context::default();
    let result = client.configGetGroup(group, id, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
group*
String
Required
id*
Integer (int32)
Format - int32.
Required

Responses


configGetMerchantConfig

Config_GetMerchantConfig


/Config/merchantconfig

Usage and SDK Samples

curl -X GET \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/Config/merchantconfig"
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 {
            Object result = apiInstance.configGetMerchantConfig();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#configGetMerchantConfig");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


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

import org.openapitools.client.api.DefaultApi;

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

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


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

// Config_GetMerchantConfig
[apiInstance configGetMerchantConfigWithCompletionHandler: 
              ^(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 callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.configGetMerchantConfig(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

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

            try {
                // Config_GetMerchantConfig
                Object result = apiInstance.configGetMerchantConfig();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.configGetMerchantConfig: " + 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->configGetMerchantConfig();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->configGetMerchantConfig: ', $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->configGetMerchantConfig();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->configGetMerchantConfig: $@\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:
    # Config_GetMerchantConfig
    api_response = api_instance.config_get_merchant_config()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->configGetMerchantConfig: %s\n" % e)
extern crate DefaultApi;

pub fn main() {

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

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

Scopes

Parameters

Responses


configGetUserConfig

Config_GetUserConfig


/Config/GetUserConfig

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/GetUserConfig" \
 -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.configGetUserConfig(configObject);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#configGetUserConfig");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ConfigObject configObject = new ConfigObject(); // ConfigObject | 

try {
    final result = await api_instance.configGetUserConfig(configObject);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->configGetUserConfig: $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.configGetUserConfig(configObject);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#configGetUserConfig");
            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_GetUserConfig
[apiInstance configGetUserConfigWith: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.configGetUserConfig(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

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

            try {
                // Config_GetUserConfig
                Object result = apiInstance.configGetUserConfig(configObject);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.configGetUserConfig: " + 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->configGetUserConfig($configObject);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->configGetUserConfig: ', $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->configGetUserConfig(configObject => $configObject);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->configGetUserConfig: $@\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_GetUserConfig
    api_response = api_instance.config_get_user_config(configObject=configObject)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->configGetUserConfig: %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.configGetUserConfig(configObject, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
configObject

Responses


configGetWebsiteConfig

Config_GetWebsiteConfig


/Config/GetWebsiteConfig

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/GetWebsiteConfig" \
 -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.configGetWebsiteConfig(configObject);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#configGetWebsiteConfig");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ConfigObject configObject = new ConfigObject(); // ConfigObject | 

try {
    final result = await api_instance.configGetWebsiteConfig(configObject);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->configGetWebsiteConfig: $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.configGetWebsiteConfig(configObject);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#configGetWebsiteConfig");
            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_GetWebsiteConfig
[apiInstance configGetWebsiteConfigWith: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.configGetWebsiteConfig(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

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

            try {
                // Config_GetWebsiteConfig
                Object result = apiInstance.configGetWebsiteConfig(configObject);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.configGetWebsiteConfig: " + 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->configGetWebsiteConfig($configObject);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->configGetWebsiteConfig: ', $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->configGetWebsiteConfig(configObject => $configObject);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->configGetWebsiteConfig: $@\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_GetWebsiteConfig
    api_response = api_instance.config_get_website_config(configObject=configObject)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->configGetWebsiteConfig: %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.configGetWebsiteConfig(configObject, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
configObject

Responses


configSaveGroup

Config_SaveGroup


/Config/SaveGroup

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/SaveGroup" \
 -d '{
  "WebsiteID" : 6,
  "Group" : "Group",
  "TenantID" : 0,
  "UserID" : 1,
  "DisplayName" : "DisplayName",
  "Items" : [ {
    "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
  }, {
    "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 '<ConfigGroupDetails>
  <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>
  <Group>aeiou</Group>
  <DisplayName>aeiou</DisplayName>
  <TenantID>123</TenantID>
  <WebsiteID>123</WebsiteID>
  <UserID>123</UserID>
</ConfigGroupDetails>' \
 -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();
        ConfigGroupDetails configGroupDetails = {"Items":[{"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}],"Group":"string","DisplayName":"string","TenantID":0,"WebsiteID":0,"UserID":0}; // ConfigGroupDetails | 

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

final api_instance = DefaultApi();

final ConfigGroupDetails configGroupDetails = new ConfigGroupDetails(); // ConfigGroupDetails | 

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        ConfigGroupDetails configGroupDetails = {"Items":[{"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}],"Group":"string","DisplayName":"string","TenantID":0,"WebsiteID":0,"UserID":0}; // ConfigGroupDetails | 

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


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
ConfigGroupDetails *configGroupDetails = {"Items":[{"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}],"Group":"string","DisplayName":"string","TenantID":0,"WebsiteID":0,"UserID":0}; //  (optional)

// Config_SaveGroup
[apiInstance configSaveGroupWith:configGroupDetails
              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 = {
  'configGroupDetails': {"Items":[{"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}],"Group":"string","DisplayName":"string","TenantID":0,"WebsiteID":0,"UserID":0} // {ConfigGroupDetails} 
};

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

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

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$configGroupDetails = {"Items":[{"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}],"Group":"string","DisplayName":"string","TenantID":0,"WebsiteID":0,"UserID":0}; // ConfigGroupDetails | 

try {
    $result = $api_instance->configSaveGroup($configGroupDetails);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->configSaveGroup: ', $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 $configGroupDetails = WWW::OPenAPIClient::Object::ConfigGroupDetails->new(); # ConfigGroupDetails | 

eval {
    my $result = $api_instance->configSaveGroup(configGroupDetails => $configGroupDetails);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->configSaveGroup: $@\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()
configGroupDetails = {"Items":[{"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}],"Group":"string","DisplayName":"string","TenantID":0,"WebsiteID":0,"UserID":0} # ConfigGroupDetails |  (optional)

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

pub fn main() {
    let configGroupDetails = {"Items":[{"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}],"Group":"string","DisplayName":"string","TenantID":0,"WebsiteID":0,"UserID":0}; // ConfigGroupDetails

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

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

Scopes

Parameters

Body parameters
Name Description
configGroupDetails

Responses


configSaveMerchantConfig

Config_SaveMerchantConfig


/Config/merchantconfig

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/merchantconfig" \
 -d '{
  "SpendaCollectVirtualTerminal" : {
    "WebsiteID" : 6,
    "Group" : "Group",
    "TenantID" : 0,
    "UserID" : 1,
    "DisplayName" : "DisplayName",
    "Items" : [ {
      "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
    }, {
      "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
    } ]
  },
  "SpendaCollectCustomerPortalMerchant" : {
    "WebsiteID" : 6,
    "Group" : "Group",
    "TenantID" : 0,
    "UserID" : 1,
    "DisplayName" : "DisplayName",
    "Items" : [ {
      "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
    }, {
      "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 '<MerchantConfig>
  <ConfigGroupDetails>
    <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>
    <Group>aeiou</Group>
    <DisplayName>aeiou</DisplayName>
    <TenantID>123</TenantID>
    <WebsiteID>123</WebsiteID>
    <UserID>123</UserID>
  </ConfigGroupDetails>
  <ConfigGroupDetails>
    <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>
    <Group>aeiou</Group>
    <DisplayName>aeiou</DisplayName>
    <TenantID>123</TenantID>
    <WebsiteID>123</WebsiteID>
    <UserID>123</UserID>
  </ConfigGroupDetails>
</MerchantConfig>' \
 -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();
        MerchantConfig merchantConfig = {"SpendaCollectVirtualTerminal":{"Items":[{"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}],"Group":"string","DisplayName":"string","TenantID":0,"WebsiteID":0,"UserID":0},"SpendaCollectCustomerPortalMerchant":{"Items":[{"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}],"Group":"string","DisplayName":"string","TenantID":0,"WebsiteID":0,"UserID":0}}; // MerchantConfig | 

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

final api_instance = DefaultApi();

final MerchantConfig merchantConfig = new MerchantConfig(); // MerchantConfig | 

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        MerchantConfig merchantConfig = {"SpendaCollectVirtualTerminal":{"Items":[{"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}],"Group":"string","DisplayName":"string","TenantID":0,"WebsiteID":0,"UserID":0},"SpendaCollectCustomerPortalMerchant":{"Items":[{"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}],"Group":"string","DisplayName":"string","TenantID":0,"WebsiteID":0,"UserID":0}}; // MerchantConfig | 

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


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
MerchantConfig *merchantConfig = {"SpendaCollectVirtualTerminal":{"Items":[{"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}],"Group":"string","DisplayName":"string","TenantID":0,"WebsiteID":0,"UserID":0},"SpendaCollectCustomerPortalMerchant":{"Items":[{"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}],"Group":"string","DisplayName":"string","TenantID":0,"WebsiteID":0,"UserID":0}}; //  (optional)

// Config_SaveMerchantConfig
[apiInstance configSaveMerchantConfigWith:merchantConfig
              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 = {
  'merchantConfig': {"SpendaCollectVirtualTerminal":{"Items":[{"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}],"Group":"string","DisplayName":"string","TenantID":0,"WebsiteID":0,"UserID":0},"SpendaCollectCustomerPortalMerchant":{"Items":[{"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}],"Group":"string","DisplayName":"string","TenantID":0,"WebsiteID":0,"UserID":0}} // {MerchantConfig} 
};

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

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

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$merchantConfig = {"SpendaCollectVirtualTerminal":{"Items":[{"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}],"Group":"string","DisplayName":"string","TenantID":0,"WebsiteID":0,"UserID":0},"SpendaCollectCustomerPortalMerchant":{"Items":[{"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}],"Group":"string","DisplayName":"string","TenantID":0,"WebsiteID":0,"UserID":0}}; // MerchantConfig | 

try {
    $result = $api_instance->configSaveMerchantConfig($merchantConfig);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->configSaveMerchantConfig: ', $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 $merchantConfig = WWW::OPenAPIClient::Object::MerchantConfig->new(); # MerchantConfig | 

eval {
    my $result = $api_instance->configSaveMerchantConfig(merchantConfig => $merchantConfig);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->configSaveMerchantConfig: $@\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()
merchantConfig = {"SpendaCollectVirtualTerminal":{"Items":[{"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}],"Group":"string","DisplayName":"string","TenantID":0,"WebsiteID":0,"UserID":0},"SpendaCollectCustomerPortalMerchant":{"Items":[{"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}],"Group":"string","DisplayName":"string","TenantID":0,"WebsiteID":0,"UserID":0}} # MerchantConfig |  (optional)

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

pub fn main() {
    let merchantConfig = {"SpendaCollectVirtualTerminal":{"Items":[{"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}],"Group":"string","DisplayName":"string","TenantID":0,"WebsiteID":0,"UserID":0},"SpendaCollectCustomerPortalMerchant":{"Items":[{"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}],"Group":"string","DisplayName":"string","TenantID":0,"WebsiteID":0,"UserID":0}}; // MerchantConfig

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

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

Scopes

Parameters

Body parameters
Name Description
merchantConfig

Responses


configSaveTermsAndConditionsForTextMessaging

Config_SaveTermsAndConditionsForTextMessaging


/Config/termsformessaging

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/termsformessaging" \
 -d 'Custom MIME type example not yet supported: text/json' \
 -d '' \
 -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();
        ActionRequestBoolean actionRequestBoolean = {"Value":true,"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestBoolean | 

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

final api_instance = DefaultApi();

final ActionRequestBoolean actionRequestBoolean = new ActionRequestBoolean(); // ActionRequestBoolean | 

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

import org.openapitools.client.api.DefaultApi;

public class DefaultApiExample {
    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        ActionRequestBoolean actionRequestBoolean = {"Value":true,"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestBoolean | 

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


// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
ActionRequestBoolean *actionRequestBoolean = {"Value":true,"TenantID":0,"WebsiteID":0,"UserID":0}; //  (optional)

// Config_SaveTermsAndConditionsForTextMessaging
[apiInstance configSaveTermsAndConditionsForTextMessagingWith:actionRequestBoolean
              completionHandler: ^(ActionResults 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 = {
  'actionRequestBoolean': {"Value":true,"TenantID":0,"WebsiteID":0,"UserID":0} // {ActionRequestBoolean} 
};

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

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

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$actionRequestBoolean = {"Value":true,"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestBoolean | 

try {
    $result = $api_instance->configSaveTermsAndConditionsForTextMessaging($actionRequestBoolean);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->configSaveTermsAndConditionsForTextMessaging: ', $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 $actionRequestBoolean = WWW::OPenAPIClient::Object::ActionRequestBoolean->new(); # ActionRequestBoolean | 

eval {
    my $result = $api_instance->configSaveTermsAndConditionsForTextMessaging(actionRequestBoolean => $actionRequestBoolean);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->configSaveTermsAndConditionsForTextMessaging: $@\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()
actionRequestBoolean = {"Value":true,"TenantID":0,"WebsiteID":0,"UserID":0} # ActionRequestBoolean |  (optional)

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

pub fn main() {
    let actionRequestBoolean = {"Value":true,"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestBoolean

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

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

Scopes

Parameters

Body parameters
Name Description
actionRequestBoolean

Responses


configSetConfig

Config_SetConfig


/Config/SetConfig

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/SetConfig" \
 -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.configSetConfig(configObject);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#configSetConfig");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ConfigObject configObject = new ConfigObject(); // ConfigObject | 

try {
    final result = await api_instance.configSetConfig(configObject);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->configSetConfig: $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.configSetConfig(configObject);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#configSetConfig");
            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_SetConfig
[apiInstance configSetConfigWith: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.configSetConfig(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

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

            try {
                // Config_SetConfig
                Object result = apiInstance.configSetConfig(configObject);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.configSetConfig: " + 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->configSetConfig($configObject);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->configSetConfig: ', $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->configSetConfig(configObject => $configObject);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->configSetConfig: $@\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_SetConfig
    api_response = api_instance.config_set_config(configObject=configObject)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->configSetConfig: %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.configSetConfig(configObject, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
configObject

Responses


configSetUserConfig

Config_SetUserConfig


/Config/SetUserConfig

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/SetUserConfig" \
 -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.configSetUserConfig(configObject);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#configSetUserConfig");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ConfigObject configObject = new ConfigObject(); // ConfigObject | 

try {
    final result = await api_instance.configSetUserConfig(configObject);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->configSetUserConfig: $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.configSetUserConfig(configObject);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#configSetUserConfig");
            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_SetUserConfig
[apiInstance configSetUserConfigWith: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.configSetUserConfig(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

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

            try {
                // Config_SetUserConfig
                Object result = apiInstance.configSetUserConfig(configObject);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.configSetUserConfig: " + 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->configSetUserConfig($configObject);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->configSetUserConfig: ', $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->configSetUserConfig(configObject => $configObject);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->configSetUserConfig: $@\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_SetUserConfig
    api_response = api_instance.config_set_user_config(configObject=configObject)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->configSetUserConfig: %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.configSetUserConfig(configObject, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
configObject

Responses


configSetWebsiteConfig

Config_SetWebsiteConfig


/Config/SetWebsiteConfig

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/SetWebsiteConfig" \
 -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.configSetWebsiteConfig(configObject);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#configSetWebsiteConfig");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ConfigObject configObject = new ConfigObject(); // ConfigObject | 

try {
    final result = await api_instance.configSetWebsiteConfig(configObject);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->configSetWebsiteConfig: $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.configSetWebsiteConfig(configObject);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#configSetWebsiteConfig");
            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_SetWebsiteConfig
[apiInstance configSetWebsiteConfigWith: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.configSetWebsiteConfig(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

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

            try {
                // Config_SetWebsiteConfig
                Object result = apiInstance.configSetWebsiteConfig(configObject);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.configSetWebsiteConfig: " + 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->configSetWebsiteConfig($configObject);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->configSetWebsiteConfig: ', $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->configSetWebsiteConfig(configObject => $configObject);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DefaultApi->configSetWebsiteConfig: $@\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_SetWebsiteConfig
    api_response = api_instance.config_set_website_config(configObject=configObject)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->configSetWebsiteConfig: %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.configSetWebsiteConfig(configObject, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
configObject

Responses