PHP code example of pstpagofacil / sdk-apis-php

1. Go to this page and download the library: Download pstpagofacil/sdk-apis-php library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

pstpagofacil / sdk-apis-php example snippets


    


Instance = new PSTPagoFacil\ApiClient\Api\AuthApi();
$loginParams = [
    "username" => "[email protected]",
    "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;
}
json
{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/PSTPAGOFACIL/sdk-apis-php.git"
    }
  ],
  "