Skip to content

Latest commit

 

History

History
131 lines (96 loc) · 4.14 KB

ProductosApi.md

File metadata and controls

131 lines (96 loc) · 4.14 KB

FacturaCom\FacturaComSdk\ProductosApi

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

apiV3ProductsCreateGet($content_type, $f_plugin, $f_api_key, $f_secret_key)

Crear productos

Método para agregar un nuevo producto.

Example

<?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;
}
?>

Parameters

Name Type Description Notes
content_type string [optional]
f_plugin string [optional]
f_api_key string [optional]
f_secret_key string [optional]

Return type

void (empty response body)

Authorization

apikeyAuth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiV3ProductsCreatePost

apiV3ProductsCreatePost($body, $content_type, $f_plugin, $f_api_key, $f_secret_key)

Listar productos

Método para listar los productos.

Example

<?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;
}
?>

Parameters

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]

Return type

void (empty response body)

Authorization

apikeyAuth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]