pstpagofacil/sdk-apis-php

API de Pago Fácil

2.1.5.1 2020-03-23 18:47 UTC

This package is auto-updated.

Last update: 2024-10-31 04:19:36 UTC


README

Pago Fácil SpA Examples

@pstpagofacil/sdk-apis-php

Status GitHub Issues GitHub Pull Requests License

Pago Fácil APIs PHP SDK

API de Pago Fácil

This PHP package is automatically generated by the OpenAPI Generator project:

  • API version: 2.1.5
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen

Requirements

PHP 5.5 and later

Installation & Usage

Composer

Using Packagist

Using GITHUB

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/PSTPAGOFACIL/sdk-apis-php.git"
    }
  ],
  "require": {
    "PSTPAGOFACIL/sdk-apis-php.git": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:

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

$apiInstance = new PSTPagoFacil\ApiClient\Api\AuthApi();
$loginParams = [
    "username" => "mimaildeejemplo@pagofacil.cl",
    "password" => "MiClavedeMentira!"
];

$body = new \PSTPagoFacil\ApiClient\Model\LoginBody($loginParams);

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

Documentation for API Endpoints

All URIs are relative to https://apis.pgf.cl

Documentation For Models

Documentation For Authorization

JWTToken

  • Type: Bearer authentication (JWT)

Token

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Author

  • Cristian Tala Sánchez