R1Sensor / T-Scale Data API

Department

departmentDelete

Удаление отдела

С помощью данного запроса можно один или несколько отделов. Необходимо передать массив номеров удаляемых отделов. Для удаления всех отделов вместо номеров необходимо передать **[ALL]**.


/department

Usage and SDK Samples

curl -X DELETE "http://ls515scale.net/api/department"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DepartmentApi;

import java.io.File;
import java.util.*;

public class DepartmentApiExample {

    public static void main(String[] args) {
        
        DepartmentApi apiInstance = new DepartmentApi();
        NumbersRef department number(s) = ; // NumbersRef | 
        try {
            apiInstance.departmentDelete(department number(s));
        } catch (ApiException e) {
            System.err.println("Exception when calling DepartmentApi#departmentDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DepartmentApi;

public class DepartmentApiExample {

    public static void main(String[] args) {
        DepartmentApi apiInstance = new DepartmentApi();
        NumbersRef department number(s) = ; // NumbersRef | 
        try {
            apiInstance.departmentDelete(department number(s));
        } catch (ApiException e) {
            System.err.println("Exception when calling DepartmentApi#departmentDelete");
            e.printStackTrace();
        }
    }
}
NumbersRef *department number(s) = ; // 

DepartmentApi *apiInstance = [[DepartmentApi alloc] init];

// Удаление отдела
[apiInstance departmentDeleteWith:department number(s)
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var R1SensorTScaleDataApi = require('r1_sensor__t_scale_data_api');

var api = new R1SensorTScaleDataApi.DepartmentApi()

var department number(s) = ; // {NumbersRef} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.departmentDelete(department number(s), callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class departmentDeleteExample
    {
        public void main()
        {
            
            var apiInstance = new DepartmentApi();
            var department number(s) = new NumbersRef(); // NumbersRef | 

            try
            {
                // Удаление отдела
                apiInstance.departmentDelete(department number(s));
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DepartmentApi.departmentDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DepartmentApi();
$department number(s) = ; // NumbersRef | 

try {
    $api_instance->departmentDelete($department number(s));
} catch (Exception $e) {
    echo 'Exception when calling DepartmentApi->departmentDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DepartmentApi;

my $api_instance = WWW::SwaggerClient::DepartmentApi->new();
my $department number(s) = WWW::SwaggerClient::Object::NumbersRef->new(); # NumbersRef | 

eval { 
    $api_instance->departmentDelete(department number(s) => $department number(s));
};
if ($@) {
    warn "Exception when calling DepartmentApi->departmentDelete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DepartmentApi()
department number(s) =  # NumbersRef | 

try: 
    # Удаление отдела
    api_instance.department_delete(department number(s))
except ApiException as e:
    print("Exception when calling DepartmentApi->departmentDelete: %s\n" % e)

Parameters

Body parameters
Name Description
department number(s) *

Responses

Status: 204 - Действие выполнено успешно

Status: default - Ошибка при выполнении команды


departmentGet

Получение данных отделов

Получение данных о всех отделах с весов.


/department

Usage and SDK Samples

curl -X GET "http://ls515scale.net/api/department?id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DepartmentApi;

import java.io.File;
import java.util.*;

public class DepartmentApiExample {

    public static void main(String[] args) {
        
        DepartmentApi apiInstance = new DepartmentApi();
        NumbersRef department number(s) = ; // NumbersRef | Номер(а) отдела(ов).
        Integer id = 56; // Integer | Номер(а) отдела(ов).
        try {
            array[DepsDataRef] result = apiInstance.departmentGet(department number(s), id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DepartmentApi#departmentGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DepartmentApi;

public class DepartmentApiExample {

    public static void main(String[] args) {
        DepartmentApi apiInstance = new DepartmentApi();
        NumbersRef department number(s) = ; // NumbersRef | Номер(а) отдела(ов).
        Integer id = 56; // Integer | Номер(а) отдела(ов).
        try {
            array[DepsDataRef] result = apiInstance.departmentGet(department number(s), id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DepartmentApi#departmentGet");
            e.printStackTrace();
        }
    }
}
NumbersRef *department number(s) = ; // Номер(а) отдела(ов). (optional)
Integer *id = 56; // Номер(а) отдела(ов). (optional)

DepartmentApi *apiInstance = [[DepartmentApi alloc] init];

// Получение данных отделов
[apiInstance departmentGetWith:department number(s)
    id:id
              completionHandler: ^(array[DepsDataRef] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var R1SensorTScaleDataApi = require('r1_sensor__t_scale_data_api');

var api = new R1SensorTScaleDataApi.DepartmentApi()

var opts = { 
  'department number(s)': , // {NumbersRef} Номер(а) отдела(ов).
  'id': 56 // {Integer} Номер(а) отдела(ов).
};

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

namespace Example
{
    public class departmentGetExample
    {
        public void main()
        {
            
            var apiInstance = new DepartmentApi();
            var department number(s) = new NumbersRef(); // NumbersRef | Номер(а) отдела(ов). (optional) 
            var id = 56;  // Integer | Номер(а) отдела(ов). (optional) 

            try
            {
                // Получение данных отделов
                array[DepsDataRef] result = apiInstance.departmentGet(department number(s), id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DepartmentApi.departmentGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DepartmentApi();
$department number(s) = ; // NumbersRef | Номер(а) отдела(ов).
$id = 56; // Integer | Номер(а) отдела(ов).

try {
    $result = $api_instance->departmentGet($department number(s), $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DepartmentApi->departmentGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DepartmentApi;

my $api_instance = WWW::SwaggerClient::DepartmentApi->new();
my $department number(s) = WWW::SwaggerClient::Object::NumbersRef->new(); # NumbersRef | Номер(а) отдела(ов).
my $id = 56; # Integer | Номер(а) отдела(ов).

eval { 
    my $result = $api_instance->departmentGet(department number(s) => $department number(s), id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DepartmentApi->departmentGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DepartmentApi()
department number(s) =  # NumbersRef | Номер(а) отдела(ов). (optional)
id = 56 # Integer | Номер(а) отдела(ов). (optional)

try: 
    # Получение данных отделов
    api_response = api_instance.department_get(department number(s)=department number(s), id=id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DepartmentApi->departmentGet: %s\n" % e)

Parameters

Body parameters
Name Description
department number(s)
Query parameters
Name Description
id
Integer
Номер(а) отдела(ов).

Responses

Status: 200 - Действие выполнено успешно

Status: default - Ошибка при выполнении команды


departmentPost

Добавление/обновление отделов

Добавление и обновление отделов на весах.


/department

Usage and SDK Samples

curl -X POST "http://ls515scale.net/api/department"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DepartmentApi;

import java.io.File;
import java.util.*;

public class DepartmentApiExample {

    public static void main(String[] args) {
        
        DepartmentApi apiInstance = new DepartmentApi();
        array[DepsDataRef] department data = ; // array[DepsDataRef] | Данные отделов
        try {
            apiInstance.departmentPost(department data);
        } catch (ApiException e) {
            System.err.println("Exception when calling DepartmentApi#departmentPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DepartmentApi;

public class DepartmentApiExample {

    public static void main(String[] args) {
        DepartmentApi apiInstance = new DepartmentApi();
        array[DepsDataRef] department data = ; // array[DepsDataRef] | Данные отделов
        try {
            apiInstance.departmentPost(department data);
        } catch (ApiException e) {
            System.err.println("Exception when calling DepartmentApi#departmentPost");
            e.printStackTrace();
        }
    }
}
array[DepsDataRef] *department data = ; // Данные отделов

DepartmentApi *apiInstance = [[DepartmentApi alloc] init];

// Добавление/обновление отделов
[apiInstance departmentPostWith:department data
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var R1SensorTScaleDataApi = require('r1_sensor__t_scale_data_api');

var api = new R1SensorTScaleDataApi.DepartmentApi()

var department data = ; // {array[DepsDataRef]} Данные отделов


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.departmentPost(department data, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class departmentPostExample
    {
        public void main()
        {
            
            var apiInstance = new DepartmentApi();
            var department data = new array[DepsDataRef](); // array[DepsDataRef] | Данные отделов

            try
            {
                // Добавление/обновление отделов
                apiInstance.departmentPost(department data);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DepartmentApi.departmentPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DepartmentApi();
$department data = ; // array[DepsDataRef] | Данные отделов

try {
    $api_instance->departmentPost($department data);
} catch (Exception $e) {
    echo 'Exception when calling DepartmentApi->departmentPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DepartmentApi;

my $api_instance = WWW::SwaggerClient::DepartmentApi->new();
my $department data = [WWW::SwaggerClient::Object::array[DepsDataRef]->new()]; # array[DepsDataRef] | Данные отделов

eval { 
    $api_instance->departmentPost(department data => $department data);
};
if ($@) {
    warn "Exception when calling DepartmentApi->departmentPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DepartmentApi()
department data =  # array[DepsDataRef] | Данные отделов

try: 
    # Добавление/обновление отделов
    api_instance.department_post(department data)
except ApiException as e:
    print("Exception when calling DepartmentApi->departmentPost: %s\n" % e)

Parameters

Body parameters
Name Description
department data *

Responses

Status: 200 - Действие выполнено успешно


Group

categoryDelete

Удаление группы

С помощью данного запроса можно одну или несколько групп. Необходимо передать массив номеров удаляемых групп. Для удаления всех групп вместо номеров необходимо передать **[ALL]**.


/category

Usage and SDK Samples

curl -X DELETE "http://ls515scale.net/api/category"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GroupApi;

import java.io.File;
import java.util.*;

public class GroupApiExample {

    public static void main(String[] args) {
        
        GroupApi apiInstance = new GroupApi();
        NumbersRef group number(s) = ; // NumbersRef | 
        try {
            apiInstance.categoryDelete(group number(s));
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupApi#categoryDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GroupApi;

public class GroupApiExample {

    public static void main(String[] args) {
        GroupApi apiInstance = new GroupApi();
        NumbersRef group number(s) = ; // NumbersRef | 
        try {
            apiInstance.categoryDelete(group number(s));
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupApi#categoryDelete");
            e.printStackTrace();
        }
    }
}
NumbersRef *group number(s) = ; // 

GroupApi *apiInstance = [[GroupApi alloc] init];

// Удаление группы
[apiInstance categoryDeleteWith:group number(s)
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var R1SensorTScaleDataApi = require('r1_sensor__t_scale_data_api');

var api = new R1SensorTScaleDataApi.GroupApi()

var group number(s) = ; // {NumbersRef} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.categoryDelete(group number(s), callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class categoryDeleteExample
    {
        public void main()
        {
            
            var apiInstance = new GroupApi();
            var group number(s) = new NumbersRef(); // NumbersRef | 

            try
            {
                // Удаление группы
                apiInstance.categoryDelete(group number(s));
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GroupApi.categoryDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\GroupApi();
$group number(s) = ; // NumbersRef | 

try {
    $api_instance->categoryDelete($group number(s));
} catch (Exception $e) {
    echo 'Exception when calling GroupApi->categoryDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::GroupApi;

my $api_instance = WWW::SwaggerClient::GroupApi->new();
my $group number(s) = WWW::SwaggerClient::Object::NumbersRef->new(); # NumbersRef | 

eval { 
    $api_instance->categoryDelete(group number(s) => $group number(s));
};
if ($@) {
    warn "Exception when calling GroupApi->categoryDelete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.GroupApi()
group number(s) =  # NumbersRef | 

try: 
    # Удаление группы
    api_instance.category_delete(group number(s))
except ApiException as e:
    print("Exception when calling GroupApi->categoryDelete: %s\n" % e)

Parameters

Body parameters
Name Description
group number(s) *

Responses

Status: 204 - Действие выполнено успешно

Status: default - Ошибка при выполнении команды


categoryGet

Получение данных групп

Получение данных о всех группах товаров с весов.


/category

Usage and SDK Samples

curl -X GET "http://ls515scale.net/api/category"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GroupApi;

import java.io.File;
import java.util.*;

public class GroupApiExample {

    public static void main(String[] args) {
        
        GroupApi apiInstance = new GroupApi();
        try {
            array[GroupsDataRef] result = apiInstance.categoryGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupApi#categoryGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GroupApi;

public class GroupApiExample {

    public static void main(String[] args) {
        GroupApi apiInstance = new GroupApi();
        try {
            array[GroupsDataRef] result = apiInstance.categoryGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupApi#categoryGet");
            e.printStackTrace();
        }
    }
}

GroupApi *apiInstance = [[GroupApi alloc] init];

// Получение данных групп
[apiInstance categoryGetWithCompletionHandler: 
              ^(array[GroupsDataRef] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var R1SensorTScaleDataApi = require('r1_sensor__t_scale_data_api');

var api = new R1SensorTScaleDataApi.GroupApi()

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

namespace Example
{
    public class categoryGetExample
    {
        public void main()
        {
            
            var apiInstance = new GroupApi();

            try
            {
                // Получение данных групп
                array[GroupsDataRef] result = apiInstance.categoryGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GroupApi.categoryGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\GroupApi();

try {
    $result = $api_instance->categoryGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GroupApi->categoryGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::GroupApi;

my $api_instance = WWW::SwaggerClient::GroupApi->new();

eval { 
    my $result = $api_instance->categoryGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GroupApi->categoryGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.GroupApi()

try: 
    # Получение данных групп
    api_response = api_instance.category_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GroupApi->categoryGet: %s\n" % e)

Parameters

Responses

Status: 200 - Действие выполнено успешно

Status: default - Ошибка при выполнении команды


categoryPost

Добавление/обновление групп

Добавление и обновление групп на весах.


/category

Usage and SDK Samples

curl -X POST "http://ls515scale.net/api/category"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.GroupApi;

import java.io.File;
import java.util.*;

public class GroupApiExample {

    public static void main(String[] args) {
        
        GroupApi apiInstance = new GroupApi();
        array[GroupsDataRef] groups data = ; // array[GroupsDataRef] | Данные групп
        try {
            apiInstance.categoryPost(groups data);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupApi#categoryPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.GroupApi;

public class GroupApiExample {

    public static void main(String[] args) {
        GroupApi apiInstance = new GroupApi();
        array[GroupsDataRef] groups data = ; // array[GroupsDataRef] | Данные групп
        try {
            apiInstance.categoryPost(groups data);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupApi#categoryPost");
            e.printStackTrace();
        }
    }
}
array[GroupsDataRef] *groups data = ; // Данные групп

GroupApi *apiInstance = [[GroupApi alloc] init];

// Добавление/обновление групп
[apiInstance categoryPostWith:groups data
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var R1SensorTScaleDataApi = require('r1_sensor__t_scale_data_api');

var api = new R1SensorTScaleDataApi.GroupApi()

var groups data = ; // {array[GroupsDataRef]} Данные групп


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.categoryPost(groups data, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class categoryPostExample
    {
        public void main()
        {
            
            var apiInstance = new GroupApi();
            var groups data = new array[GroupsDataRef](); // array[GroupsDataRef] | Данные групп

            try
            {
                // Добавление/обновление групп
                apiInstance.categoryPost(groups data);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling GroupApi.categoryPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\GroupApi();
$groups data = ; // array[GroupsDataRef] | Данные групп

try {
    $api_instance->categoryPost($groups data);
} catch (Exception $e) {
    echo 'Exception when calling GroupApi->categoryPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::GroupApi;

my $api_instance = WWW::SwaggerClient::GroupApi->new();
my $groups data = [WWW::SwaggerClient::Object::array[GroupsDataRef]->new()]; # array[GroupsDataRef] | Данные групп

eval { 
    $api_instance->categoryPost(groups data => $groups data);
};
if ($@) {
    warn "Exception when calling GroupApi->categoryPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.GroupApi()
groups data =  # array[GroupsDataRef] | Данные групп

try: 
    # Добавление/обновление групп
    api_instance.category_post(groups data)
except ApiException as e:
    print("Exception when calling GroupApi->categoryPost: %s\n" % e)

Parameters

Body parameters
Name Description
groups data *

Responses

Status: 200 - Действие выполнено успешно


Misc

infoGet

Получение служебной информации о весах


/info

Usage and SDK Samples

curl -X GET "http://ls515scale.net/api/info"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MiscApi;

import java.io.File;
import java.util.*;

public class MiscApiExample {

    public static void main(String[] args) {
        
        MiscApi apiInstance = new MiscApi();
        try {
            InfoGetRef result = apiInstance.infoGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MiscApi#infoGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MiscApi;

public class MiscApiExample {

    public static void main(String[] args) {
        MiscApi apiInstance = new MiscApi();
        try {
            InfoGetRef result = apiInstance.infoGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MiscApi#infoGet");
            e.printStackTrace();
        }
    }
}

MiscApi *apiInstance = [[MiscApi alloc] init];

// Получение служебной информации о весах
[apiInstance infoGetWithCompletionHandler: 
              ^(InfoGetRef output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var R1SensorTScaleDataApi = require('r1_sensor__t_scale_data_api');

var api = new R1SensorTScaleDataApi.MiscApi()

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

namespace Example
{
    public class infoGetExample
    {
        public void main()
        {
            
            var apiInstance = new MiscApi();

            try
            {
                // Получение служебной информации о весах
                InfoGetRef result = apiInstance.infoGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MiscApi.infoGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\MiscApi();

try {
    $result = $api_instance->infoGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MiscApi->infoGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MiscApi;

my $api_instance = WWW::SwaggerClient::MiscApi->new();

eval { 
    my $result = $api_instance->infoGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MiscApi->infoGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.MiscApi()

try: 
    # Получение служебной информации о весах
    api_response = api_instance.info_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MiscApi->infoGet: %s\n" % e)

Parameters

Responses

Status: 200 - Команда выполнена успешно


infoPost

Установка служебной информации на весах


/info

Usage and SDK Samples

curl -X POST "http://ls515scale.net/api/info"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MiscApi;

import java.io.File;
import java.util.*;

public class MiscApiExample {

    public static void main(String[] args) {
        
        MiscApi apiInstance = new MiscApi();
        InfoPostRef info = ; // InfoPostRef | Служебная информация, устанавливаемая на весах.
        try {
            apiInstance.infoPost(info);
        } catch (ApiException e) {
            System.err.println("Exception when calling MiscApi#infoPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MiscApi;

public class MiscApiExample {

    public static void main(String[] args) {
        MiscApi apiInstance = new MiscApi();
        InfoPostRef info = ; // InfoPostRef | Служебная информация, устанавливаемая на весах.
        try {
            apiInstance.infoPost(info);
        } catch (ApiException e) {
            System.err.println("Exception when calling MiscApi#infoPost");
            e.printStackTrace();
        }
    }
}
InfoPostRef *info = ; // Служебная информация, устанавливаемая на весах.

MiscApi *apiInstance = [[MiscApi alloc] init];

// Установка служебной информации на весах
[apiInstance infoPostWith:info
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var R1SensorTScaleDataApi = require('r1_sensor__t_scale_data_api');

var api = new R1SensorTScaleDataApi.MiscApi()

var info = ; // {InfoPostRef} Служебная информация, устанавливаемая на весах.


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.infoPost(info, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class infoPostExample
    {
        public void main()
        {
            
            var apiInstance = new MiscApi();
            var info = new InfoPostRef(); // InfoPostRef | Служебная информация, устанавливаемая на весах.

            try
            {
                // Установка служебной информации на весах
                apiInstance.infoPost(info);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MiscApi.infoPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\MiscApi();
$info = ; // InfoPostRef | Служебная информация, устанавливаемая на весах.

try {
    $api_instance->infoPost($info);
} catch (Exception $e) {
    echo 'Exception when calling MiscApi->infoPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MiscApi;

my $api_instance = WWW::SwaggerClient::MiscApi->new();
my $info = WWW::SwaggerClient::Object::InfoPostRef->new(); # InfoPostRef | Служебная информация, устанавливаемая на весах.

eval { 
    $api_instance->infoPost(info => $info);
};
if ($@) {
    warn "Exception when calling MiscApi->infoPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.MiscApi()
info =  # InfoPostRef | Служебная информация, устанавливаемая на весах.

try: 
    # Установка служебной информации на весах
    api_instance.info_post(info)
except ApiException as e:
    print("Exception when calling MiscApi->infoPost: %s\n" % e)

Parameters

Body parameters
Name Description
info *

Responses

Status: 204 - Команда выполнена успешно


setdatetimePost

Установка времени на весах


/setdatetime

Usage and SDK Samples

curl -X POST "http://ls515scale.net/api/setdatetime"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MiscApi;

import java.io.File;
import java.util.*;

public class MiscApiExample {

    public static void main(String[] args) {
        
        MiscApi apiInstance = new MiscApi();
        DateTimePostRef setdatetime = ; // DateTimePostRef | Время и дата устанавливаемые на весах.
        try {
            apiInstance.setdatetimePost(setdatetime);
        } catch (ApiException e) {
            System.err.println("Exception when calling MiscApi#setdatetimePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MiscApi;

public class MiscApiExample {

    public static void main(String[] args) {
        MiscApi apiInstance = new MiscApi();
        DateTimePostRef setdatetime = ; // DateTimePostRef | Время и дата устанавливаемые на весах.
        try {
            apiInstance.setdatetimePost(setdatetime);
        } catch (ApiException e) {
            System.err.println("Exception when calling MiscApi#setdatetimePost");
            e.printStackTrace();
        }
    }
}
DateTimePostRef *setdatetime = ; // Время и дата устанавливаемые на весах.

MiscApi *apiInstance = [[MiscApi alloc] init];

// Установка времени на весах
[apiInstance setdatetimePostWith:setdatetime
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var R1SensorTScaleDataApi = require('r1_sensor__t_scale_data_api');

var api = new R1SensorTScaleDataApi.MiscApi()

var setdatetime = ; // {DateTimePostRef} Время и дата устанавливаемые на весах.


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.setdatetimePost(setdatetime, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class setdatetimePostExample
    {
        public void main()
        {
            
            var apiInstance = new MiscApi();
            var setdatetime = new DateTimePostRef(); // DateTimePostRef | Время и дата устанавливаемые на весах.

            try
            {
                // Установка времени на весах
                apiInstance.setdatetimePost(setdatetime);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MiscApi.setdatetimePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\MiscApi();
$setdatetime = ; // DateTimePostRef | Время и дата устанавливаемые на весах.

try {
    $api_instance->setdatetimePost($setdatetime);
} catch (Exception $e) {
    echo 'Exception when calling MiscApi->setdatetimePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MiscApi;

my $api_instance = WWW::SwaggerClient::MiscApi->new();
my $setdatetime = WWW::SwaggerClient::Object::DateTimePostRef->new(); # DateTimePostRef | Время и дата устанавливаемые на весах.

eval { 
    $api_instance->setdatetimePost(setdatetime => $setdatetime);
};
if ($@) {
    warn "Exception when calling MiscApi->setdatetimePost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.MiscApi()
setdatetime =  # DateTimePostRef | Время и дата устанавливаемые на весах.

try: 
    # Установка времени на весах
    api_instance.setdatetime_post(setdatetime)
except ApiException as e:
    print("Exception when calling MiscApi->setdatetimePost: %s\n" % e)

Parameters

Body parameters
Name Description
setdatetime *

Responses

Status: 200 - Команда выполнена успешно

Status: 400 - Ошибка в параметрах


Pricechecker

pricecheckerProductsDelete

Удаление товара/товаров

С помощью данного запроса можно удалить один или несколько товаров. Необходимо передать массив номеров удаляемых товаров. Для удаления всех товаров вместо номеров необходимо передать **[ALL]**.


/pricechecker/products

Usage and SDK Samples

curl -X DELETE "http://ls515scale.net/api/pricechecker/products"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PricecheckerApi;

import java.io.File;
import java.util.*;

public class PricecheckerApiExample {

    public static void main(String[] args) {
        
        PricecheckerApi apiInstance = new PricecheckerApi();
        NumbersRef goods number(s) = ; // NumbersRef | 
        try {
            apiInstance.pricecheckerProductsDelete(goods number(s));
        } catch (ApiException e) {
            System.err.println("Exception when calling PricecheckerApi#pricecheckerProductsDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PricecheckerApi;

public class PricecheckerApiExample {

    public static void main(String[] args) {
        PricecheckerApi apiInstance = new PricecheckerApi();
        NumbersRef goods number(s) = ; // NumbersRef | 
        try {
            apiInstance.pricecheckerProductsDelete(goods number(s));
        } catch (ApiException e) {
            System.err.println("Exception when calling PricecheckerApi#pricecheckerProductsDelete");
            e.printStackTrace();
        }
    }
}
NumbersRef *goods number(s) = ; // 

PricecheckerApi *apiInstance = [[PricecheckerApi alloc] init];

// Удаление товара/товаров
[apiInstance pricecheckerProductsDeleteWith:goods number(s)
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var R1SensorTScaleDataApi = require('r1_sensor__t_scale_data_api');

var api = new R1SensorTScaleDataApi.PricecheckerApi()

var goods number(s) = ; // {NumbersRef} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.pricecheckerProductsDelete(goods number(s), callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class pricecheckerProductsDeleteExample
    {
        public void main()
        {
            
            var apiInstance = new PricecheckerApi();
            var goods number(s) = new NumbersRef(); // NumbersRef | 

            try
            {
                // Удаление товара/товаров
                apiInstance.pricecheckerProductsDelete(goods number(s));
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PricecheckerApi.pricecheckerProductsDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PricecheckerApi();
$goods number(s) = ; // NumbersRef | 

try {
    $api_instance->pricecheckerProductsDelete($goods number(s));
} catch (Exception $e) {
    echo 'Exception when calling PricecheckerApi->pricecheckerProductsDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PricecheckerApi;

my $api_instance = WWW::SwaggerClient::PricecheckerApi->new();
my $goods number(s) = WWW::SwaggerClient::Object::NumbersRef->new(); # NumbersRef | 

eval { 
    $api_instance->pricecheckerProductsDelete(goods number(s) => $goods number(s));
};
if ($@) {
    warn "Exception when calling PricecheckerApi->pricecheckerProductsDelete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.PricecheckerApi()
goods number(s) =  # NumbersRef | 

try: 
    # Удаление товара/товаров
    api_instance.pricechecker_products_delete(goods number(s))
except ApiException as e:
    print("Exception when calling PricecheckerApi->pricecheckerProductsDelete: %s\n" % e)

Parameters

Body parameters
Name Description
goods number(s) *

Responses

Status: 204 - Действие выполнено успешно

Status: default - Ошибка удаления товара


pricecheckerProductsGet

Получение данных товаров

Получение данных о всех товарах с весов.


/pricechecker/products

Usage and SDK Samples

curl -X GET "http://ls515scale.net/api/pricechecker/products"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PricecheckerApi;

import java.io.File;
import java.util.*;

public class PricecheckerApiExample {

    public static void main(String[] args) {
        
        PricecheckerApi apiInstance = new PricecheckerApi();
        try {
            array[PriceCheckerGoodsDataRef] result = apiInstance.pricecheckerProductsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PricecheckerApi#pricecheckerProductsGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PricecheckerApi;

public class PricecheckerApiExample {

    public static void main(String[] args) {
        PricecheckerApi apiInstance = new PricecheckerApi();
        try {
            array[PriceCheckerGoodsDataRef] result = apiInstance.pricecheckerProductsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PricecheckerApi#pricecheckerProductsGet");
            e.printStackTrace();
        }
    }
}

PricecheckerApi *apiInstance = [[PricecheckerApi alloc] init];

// Получение данных товаров
[apiInstance pricecheckerProductsGetWithCompletionHandler: 
              ^(array[PriceCheckerGoodsDataRef] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var R1SensorTScaleDataApi = require('r1_sensor__t_scale_data_api');

var api = new R1SensorTScaleDataApi.PricecheckerApi()

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

namespace Example
{
    public class pricecheckerProductsGetExample
    {
        public void main()
        {
            
            var apiInstance = new PricecheckerApi();

            try
            {
                // Получение данных товаров
                array[PriceCheckerGoodsDataRef] result = apiInstance.pricecheckerProductsGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PricecheckerApi.pricecheckerProductsGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PricecheckerApi();

try {
    $result = $api_instance->pricecheckerProductsGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PricecheckerApi->pricecheckerProductsGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PricecheckerApi;

my $api_instance = WWW::SwaggerClient::PricecheckerApi->new();

eval { 
    my $result = $api_instance->pricecheckerProductsGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PricecheckerApi->pricecheckerProductsGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.PricecheckerApi()

try: 
    # Получение данных товаров
    api_response = api_instance.pricechecker_products_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PricecheckerApi->pricecheckerProductsGet: %s\n" % e)

Parameters

Responses

Status: 200 - Команда выполнена успешно

Status: default - Ошибка при выполнении команды


pricecheckerProductsPost

Добавление/обновление товаров

Добавление и обновление товаров на весах.


/pricechecker/products

Usage and SDK Samples

curl -X POST "http://ls515scale.net/api/pricechecker/products"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PricecheckerApi;

import java.io.File;
import java.util.*;

public class PricecheckerApiExample {

    public static void main(String[] args) {
        
        PricecheckerApi apiInstance = new PricecheckerApi();
        array[PriceCheckerGoodsDataRef] goods data = ; // array[PriceCheckerGoodsDataRef] | Данные товара
        try {
            apiInstance.pricecheckerProductsPost(goods data);
        } catch (ApiException e) {
            System.err.println("Exception when calling PricecheckerApi#pricecheckerProductsPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PricecheckerApi;

public class PricecheckerApiExample {

    public static void main(String[] args) {
        PricecheckerApi apiInstance = new PricecheckerApi();
        array[PriceCheckerGoodsDataRef] goods data = ; // array[PriceCheckerGoodsDataRef] | Данные товара
        try {
            apiInstance.pricecheckerProductsPost(goods data);
        } catch (ApiException e) {
            System.err.println("Exception when calling PricecheckerApi#pricecheckerProductsPost");
            e.printStackTrace();
        }
    }
}
array[PriceCheckerGoodsDataRef] *goods data = ; // Данные товара

PricecheckerApi *apiInstance = [[PricecheckerApi alloc] init];

// Добавление/обновление товаров
[apiInstance pricecheckerProductsPostWith:goods data
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var R1SensorTScaleDataApi = require('r1_sensor__t_scale_data_api');

var api = new R1SensorTScaleDataApi.PricecheckerApi()

var goods data = ; // {array[PriceCheckerGoodsDataRef]} Данные товара


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.pricecheckerProductsPost(goods data, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class pricecheckerProductsPostExample
    {
        public void main()
        {
            
            var apiInstance = new PricecheckerApi();
            var goods data = new array[PriceCheckerGoodsDataRef](); // array[PriceCheckerGoodsDataRef] | Данные товара

            try
            {
                // Добавление/обновление товаров
                apiInstance.pricecheckerProductsPost(goods data);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PricecheckerApi.pricecheckerProductsPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\PricecheckerApi();
$goods data = ; // array[PriceCheckerGoodsDataRef] | Данные товара

try {
    $api_instance->pricecheckerProductsPost($goods data);
} catch (Exception $e) {
    echo 'Exception when calling PricecheckerApi->pricecheckerProductsPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PricecheckerApi;

my $api_instance = WWW::SwaggerClient::PricecheckerApi->new();
my $goods data = [WWW::SwaggerClient::Object::array[PriceCheckerGoodsDataRef]->new()]; # array[PriceCheckerGoodsDataRef] | Данные товара

eval { 
    $api_instance->pricecheckerProductsPost(goods data => $goods data);
};
if ($@) {
    warn "Exception when calling PricecheckerApi->pricecheckerProductsPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.PricecheckerApi()
goods data =  # array[PriceCheckerGoodsDataRef] | Данные товара

try: 
    # Добавление/обновление товаров
    api_instance.pricechecker_products_post(goods data)
except ApiException as e:
    print("Exception when calling PricecheckerApi->pricecheckerProductsPost: %s\n" % e)

Parameters

Body parameters
Name Description
goods data *

Responses

Status: 200 - Команда выполнена успешно


Products

productsDelete

Удаление товара/товаров

С помощью данного запроса можно удалить один или несколько товаров. Необходимо передать массив номеров удаляемых товаров. Для удаления всех товаров вместо номеров необходимо передать **[ALL]**.


/products

Usage and SDK Samples

curl -X DELETE "http://ls515scale.net/api/products"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProductsApi;

import java.io.File;
import java.util.*;

public class ProductsApiExample {

    public static void main(String[] args) {
        
        ProductsApi apiInstance = new ProductsApi();
        NumbersRef goods number(s) = ; // NumbersRef | 
        try {
            apiInstance.productsDelete(goods number(s));
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductsApi#productsDelete");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProductsApi;

public class ProductsApiExample {

    public static void main(String[] args) {
        ProductsApi apiInstance = new ProductsApi();
        NumbersRef goods number(s) = ; // NumbersRef | 
        try {
            apiInstance.productsDelete(goods number(s));
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductsApi#productsDelete");
            e.printStackTrace();
        }
    }
}
NumbersRef *goods number(s) = ; // 

ProductsApi *apiInstance = [[ProductsApi alloc] init];

// Удаление товара/товаров
[apiInstance productsDeleteWith:goods number(s)
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var R1SensorTScaleDataApi = require('r1_sensor__t_scale_data_api');

var api = new R1SensorTScaleDataApi.ProductsApi()

var goods number(s) = ; // {NumbersRef} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.productsDelete(goods number(s), callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class productsDeleteExample
    {
        public void main()
        {
            
            var apiInstance = new ProductsApi();
            var goods number(s) = new NumbersRef(); // NumbersRef | 

            try
            {
                // Удаление товара/товаров
                apiInstance.productsDelete(goods number(s));
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ProductsApi.productsDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ProductsApi();
$goods number(s) = ; // NumbersRef | 

try {
    $api_instance->productsDelete($goods number(s));
} catch (Exception $e) {
    echo 'Exception when calling ProductsApi->productsDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ProductsApi;

my $api_instance = WWW::SwaggerClient::ProductsApi->new();
my $goods number(s) = WWW::SwaggerClient::Object::NumbersRef->new(); # NumbersRef | 

eval { 
    $api_instance->productsDelete(goods number(s) => $goods number(s));
};
if ($@) {
    warn "Exception when calling ProductsApi->productsDelete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ProductsApi()
goods number(s) =  # NumbersRef | 

try: 
    # Удаление товара/товаров
    api_instance.products_delete(goods number(s))
except ApiException as e:
    print("Exception when calling ProductsApi->productsDelete: %s\n" % e)

Parameters

Body parameters
Name Description
goods number(s) *

Responses

Status: 204 - Действие выполнено успешно

Status: default - Ошибка удаления товара


productsGet

Получение данных товаров

Получение данных о всех товарах с весов.


/products

Usage and SDK Samples

curl -X GET "http://ls515scale.net/api/products"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProductsApi;

import java.io.File;
import java.util.*;

public class ProductsApiExample {

    public static void main(String[] args) {
        
        ProductsApi apiInstance = new ProductsApi();
        try {
            array[GoodsDataRef] result = apiInstance.productsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductsApi#productsGet");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProductsApi;

public class ProductsApiExample {

    public static void main(String[] args) {
        ProductsApi apiInstance = new ProductsApi();
        try {
            array[GoodsDataRef] result = apiInstance.productsGet();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductsApi#productsGet");
            e.printStackTrace();
        }
    }
}

ProductsApi *apiInstance = [[ProductsApi alloc] init];

// Получение данных товаров
[apiInstance productsGetWithCompletionHandler: 
              ^(array[GoodsDataRef] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var R1SensorTScaleDataApi = require('r1_sensor__t_scale_data_api');

var api = new R1SensorTScaleDataApi.ProductsApi()

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

namespace Example
{
    public class productsGetExample
    {
        public void main()
        {
            
            var apiInstance = new ProductsApi();

            try
            {
                // Получение данных товаров
                array[GoodsDataRef] result = apiInstance.productsGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ProductsApi.productsGet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ProductsApi();

try {
    $result = $api_instance->productsGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProductsApi->productsGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ProductsApi;

my $api_instance = WWW::SwaggerClient::ProductsApi->new();

eval { 
    my $result = $api_instance->productsGet();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProductsApi->productsGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ProductsApi()

try: 
    # Получение данных товаров
    api_response = api_instance.products_get()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProductsApi->productsGet: %s\n" % e)

Parameters

Responses

Status: 200 - Команда выполнена успешно

Status: default - Ошибка при выполнении команды


productsPost

Добавление/обновление товаров

Добавление и обновление товаров на весах.


/products

Usage and SDK Samples

curl -X POST "http://ls515scale.net/api/products"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProductsApi;

import java.io.File;
import java.util.*;

public class ProductsApiExample {

    public static void main(String[] args) {
        
        ProductsApi apiInstance = new ProductsApi();
        array[GoodsDataRef] goods data = ; // array[GoodsDataRef] | Данные товара
        try {
            apiInstance.productsPost(goods data);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductsApi#productsPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ProductsApi;

public class ProductsApiExample {

    public static void main(String[] args) {
        ProductsApi apiInstance = new ProductsApi();
        array[GoodsDataRef] goods data = ; // array[GoodsDataRef] | Данные товара
        try {
            apiInstance.productsPost(goods data);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProductsApi#productsPost");
            e.printStackTrace();
        }
    }
}
array[GoodsDataRef] *goods data = ; // Данные товара

ProductsApi *apiInstance = [[ProductsApi alloc] init];

// Добавление/обновление товаров
[apiInstance productsPostWith:goods data
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var R1SensorTScaleDataApi = require('r1_sensor__t_scale_data_api');

var api = new R1SensorTScaleDataApi.ProductsApi()

var goods data = ; // {array[GoodsDataRef]} Данные товара


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.productsPost(goods data, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class productsPostExample
    {
        public void main()
        {
            
            var apiInstance = new ProductsApi();
            var goods data = new array[GoodsDataRef](); // array[GoodsDataRef] | Данные товара

            try
            {
                // Добавление/обновление товаров
                apiInstance.productsPost(goods data);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ProductsApi.productsPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\ProductsApi();
$goods data = ; // array[GoodsDataRef] | Данные товара

try {
    $api_instance->productsPost($goods data);
} catch (Exception $e) {
    echo 'Exception when calling ProductsApi->productsPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ProductsApi;

my $api_instance = WWW::SwaggerClient::ProductsApi->new();
my $goods data = [WWW::SwaggerClient::Object::array[GoodsDataRef]->new()]; # array[GoodsDataRef] | Данные товара

eval { 
    $api_instance->productsPost(goods data => $goods data);
};
if ($@) {
    warn "Exception when calling ProductsApi->productsPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.ProductsApi()
goods data =  # array[GoodsDataRef] | Данные товара

try: 
    # Добавление/обновление товаров
    api_instance.products_post(goods data)
except ApiException as e:
    print("Exception when calling ProductsApi->productsPost: %s\n" % e)

Parameters

Body parameters
Name Description
goods data *

Responses

Status: 200 - Команда выполнена успешно