AS Server - API - Module

Default

moduleGet

Module_Get


/Module/Get

Usage and SDK Samples

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

final api_instance = DefaultApi();


try {
    final result = await api_instance.moduleGet();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->moduleGet: $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.moduleGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#moduleGet");
            e.printStackTrace();
        }
    }
}


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

// Module_Get
[apiInstance moduleGetWithCompletionHandler: 
              ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiModule = require('as_server_api_module');

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

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

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

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

pub fn main() {

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

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

Scopes

Parameters

Responses


moduleSave

Module_Save


/Module/Save

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/Module/Save" \
 -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();
        ActionRequestListInt32 actionRequestListInt32 = {"Value":[0],"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestListInt32 | 

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

final api_instance = DefaultApi();

final ActionRequestListInt32 actionRequestListInt32 = new ActionRequestListInt32(); // ActionRequestListInt32 | 

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

import org.openapitools.client.api.DefaultApi;

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

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


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

// Module_Save
[apiInstance moduleSaveWith:actionRequestListInt32
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiModule = require('as_server_api_module');

// Create an instance of the API class
var api = new AsServerApiModule.DefaultApi()
var opts = {
  'actionRequestListInt32': {"Value":[0],"TenantID":0,"WebsiteID":0,"UserID":0} // {ActionRequestListInt32} 
};

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

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

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

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

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

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

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

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

pub fn main() {
    let actionRequestListInt32 = {"Value":[0],"TenantID":0,"WebsiteID":0,"UserID":0}; // ActionRequestListInt32

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

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

Scopes

Parameters

Body parameters
Name Description
actionRequestListInt32

Responses