AS Server - API - StockTakeImport

Default

stockTakeImportGet

StockTakeImport_Get


/StockTakeImport/

Usage and SDK Samples

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.DefaultApi;

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

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


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

// StockTakeImport_Get
[apiInstance stockTakeImportGetWithCompletionHandler: 
              ^(ActionResults output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiStockTakeImport = require('as_server_api_stock_take_import');

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

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

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

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

pub fn main() {

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

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

Scopes

Parameters

Responses


stockTakeImportPost

StockTakeImport_Post


/StockTakeImport/

Usage and SDK Samples

curl -X POST \
 -H "Accept: application/json,text/json,application/xml,text/xml" \
 "https://api.dev.spenda.co/api/StockTakeImport/?stocktakeID=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();
        Integer stocktakeID = 56; // Integer | Format - int32.

        try {
            array[FileDetails] result = apiInstance.stockTakeImportPost(stocktakeID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#stockTakeImportPost");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer stocktakeID = new Integer(); // Integer | Format - int32.

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

import org.openapitools.client.api.DefaultApi;

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

        try {
            array[FileDetails] result = apiInstance.stockTakeImportPost(stocktakeID);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#stockTakeImportPost");
            e.printStackTrace();
        }
    }
}


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

// StockTakeImport_Post
[apiInstance stockTakeImportPostWith:stocktakeID
              completionHandler: ^(array[FileDetails] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AsServerApiStockTakeImport = require('as_server_api_stock_take_import');

// Create an instance of the API class
var api = new AsServerApiStockTakeImport.DefaultApi()
var stocktakeID = 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.stockTakeImportPost(stocktakeID, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

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

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

            try {
                // StockTakeImport_Post
                array[FileDetails] result = apiInstance.stockTakeImportPost(stocktakeID);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DefaultApi.stockTakeImportPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

try:
    # StockTakeImport_Post
    api_response = api_instance.stock_take_import_post(stocktakeID)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->stockTakeImportPost: %s\n" % e)
extern crate DefaultApi;

pub fn main() {
    let stocktakeID = 56; // Integer

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

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

Scopes

Parameters

Query parameters
Name Description
stocktakeID*
Integer (int32)
Format - int32.
Required

Responses