SDK Installation
We have official libraries for the following languages:
If you are using any other language, you can still consume the API using your own HTTP client.
Using one of our official libraries
Start by including the Facturapi client in your project dependencies.
- Node.js
- C#
- Java
- PHP
Install the package from NPM.
$> npm install --save facturapi
Install the NuGet package from Visual Studio or from the Package Manager terminal:
dotnet add package Facturapi
Install the package from Maven Central. Choose the block that matches your build tool.
Using Maven:
<dependency>
<groupId>io.facturapi</groupId>
<artifactId>facturapi-java</artifactId>
<version>1.0.0</version>
</dependency>
Using Gradle:
implementation("io.facturapi:facturapi-java:1.0.0")
Install the package from Packagist using composer:
$> composer require "facturapi/facturapi-php"
Import the library before using it in your code.
- Node.js
- C#
- Java
- PHP
- cURL
CommonJS
import Facturapi from 'facturapi'
ESM / Typescript
import Facturapi from 'facturapi';
using Facturapi;
import io.facturapi.Facturapi;
require_once __DIR__ . '/vendor/autoload.php';
use Facturapi\Facturapi;
If your framework already loads Composer autoload automatically, you can omit require_once.
cURL doesn't require any installation
Using your own HTTP client
If you consume the API directly using your own HTTP client, you don't need to install anything. You can move on to the next section.