# PartScannerClient\MoyskladConfigApi

All URIs are relative to *https://virtserver.swaggerhub.com/dimaxz/partscanner/1.0.0*

Method | HTTP request | Description
------------- | ------------- | -------------
[**moyskladConfigsGet**](MoyskladConfigApi.md#moyskladconfigsget) | **GET** /moysklad-configs | список moysklad соединений
[**moyskladConfigsIdDelete**](MoyskladConfigApi.md#moyskladconfigsiddelete) | **DELETE** /moysklad-configs/{id} | удаление настройки
[**moyskladConfigsIdGet**](MoyskladConfigApi.md#moyskladconfigsidget) | **GET** /moysklad-configs/{id} | настройка moysklad config по id
[**moyskladConfigsIdPut**](MoyskladConfigApi.md#moyskladconfigsidput) | **PUT** /moysklad-configs/{id} | обновление настройки
[**moyskladConfigsPost**](MoyskladConfigApi.md#moyskladconfigspost) | **POST** /moysklad-configs | создание настроек moysklad

# **moyskladConfigsGet**
> \PartScannerClient\Model\InlineResponse20018 moyskladConfigsGet()

список moysklad соединений

### Example
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new PartScannerClient\Api\MoyskladConfigApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);

try {
    $result = $apiInstance->moyskladConfigsGet();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MoyskladConfigApi->moyskladConfigsGet: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters
This endpoint does not need any parameter.

### Return type

[**\PartScannerClient\Model\InlineResponse20018**](../Model/InlineResponse20018.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

# **moyskladConfigsIdDelete**
> moyskladConfigsIdDelete($id)

удаление настройки

### Example
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new PartScannerClient\Api\MoyskladConfigApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$id = 56; // int | 

try {
    $apiInstance->moyskladConfigsIdDelete($id);
} catch (Exception $e) {
    echo 'Exception when calling MoyskladConfigApi->moyskladConfigsIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **int**|  |

### Return type

void (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

# **moyskladConfigsIdGet**
> \PartScannerClient\Model\InlineResponse20019 moyskladConfigsIdGet($id)

настройка moysklad config по id

### Example
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new PartScannerClient\Api\MoyskladConfigApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$id = 56; // int | 

try {
    $result = $apiInstance->moyskladConfigsIdGet($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MoyskladConfigApi->moyskladConfigsIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **int**|  |

### Return type

[**\PartScannerClient\Model\InlineResponse20019**](../Model/InlineResponse20019.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

# **moyskladConfigsIdPut**
> moyskladConfigsIdPut($body, $id)

обновление настройки

### Example
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new PartScannerClient\Api\MoyskladConfigApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$body = new \PartScannerClient\Model\MoySkladConfigRequest(); // \PartScannerClient\Model\MoySkladConfigRequest | 
$id = 56; // int | 

try {
    $apiInstance->moyskladConfigsIdPut($body, $id);
} catch (Exception $e) {
    echo 'Exception when calling MoyskladConfigApi->moyskladConfigsIdPut: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**\PartScannerClient\Model\MoySkladConfigRequest**](../Model/MoySkladConfigRequest.md)|  |
 **id** | **int**|  |

### Return type

void (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: Not defined

[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

# **moyskladConfigsPost**
> \PartScannerClient\Model\SuccessCreateResponse moyskladConfigsPost($body)

создание настроек moysklad

### Example
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new PartScannerClient\Api\MoyskladConfigApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$body = new \PartScannerClient\Model\MoySkladConfigRequest(); // \PartScannerClient\Model\MoySkladConfigRequest | 

try {
    $result = $apiInstance->moyskladConfigsPost($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MoyskladConfigApi->moyskladConfigsPost: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**\PartScannerClient\Model\MoySkladConfigRequest**](../Model/MoySkladConfigRequest.md)|  |

### Return type

[**\PartScannerClient\Model\SuccessCreateResponse**](../Model/SuccessCreateResponse.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

