All URIs are relative to https://sandbox.factura.com
Method | HTTP request | Description |
---|---|---|
apiV3ProductsCreateGet | GET /api/v3/products/create | Crear productos |
apiV3ProductsCreatePost | POST /api/v3/products/create | Listar productos |
apiV3ProductsCreateGet($content_type, $f_plugin, $f_api_key, $f_secret_key)
Crear productos
Método para agregar un nuevo producto.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: apikeyAuth
$config = FacturaCom\FacturaComSdk\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new FacturaCom\FacturaComSdk\Api\ProductosApi(
// 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(),
$config
);
$content_type = "content_type_example"; // string |
$f_plugin = "f_plugin_example"; // string |
$f_api_key = "f_api_key_example"; // string |
$f_secret_key = "f_secret_key_example"; // string |
try {
$apiInstance->apiV3ProductsCreateGet($content_type, $f_plugin, $f_api_key, $f_secret_key);
} catch (Exception $e) {
echo 'Exception when calling ProductosApi->apiV3ProductsCreateGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
content_type | string | [optional] | |
f_plugin | string | [optional] | |
f_api_key | string | [optional] | |
f_secret_key | string | [optional] |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiV3ProductsCreatePost($body, $content_type, $f_plugin, $f_api_key, $f_secret_key)
Listar productos
Método para listar los productos.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: apikeyAuth
$config = FacturaCom\FacturaComSdk\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new FacturaCom\FacturaComSdk\Api\ProductosApi(
// 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(),
$config
);
$body = "body_example"; // string |
$content_type = "content_type_example"; // string |
$f_plugin = "f_plugin_example"; // string |
$f_api_key = "f_api_key_example"; // string |
$f_secret_key = "f_secret_key_example"; // string |
try {
$apiInstance->apiV3ProductsCreatePost($body, $content_type, $f_plugin, $f_api_key, $f_secret_key);
} catch (Exception $e) {
echo 'Exception when calling ProductosApi->apiV3ProductsCreatePost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | string | [optional] | |
content_type | string | [optional] | |
f_plugin | string | [optional] | |
f_api_key | string | [optional] | |
f_secret_key | string | [optional] |
void (empty response body)
- Content-Type: /
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]