Skip to content

flyocloud/nitro-php-sdk

Folders and files

NameName
Last commit message
Last commit date
Oct 24, 2024
Oct 24, 2024
Oct 24, 2024
Oct 24, 2024
Oct 24, 2024
Oct 24, 2024
Oct 24, 2024
Dec 11, 2022
Jun 14, 2023
Oct 24, 2024
Oct 24, 2024
Jun 16, 2023
Aug 19, 2024
Oct 24, 2024
Jun 16, 2023

Repository files navigation

Flyo Nitro PHP SDK

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

Getting Started

Install library

composer require flyo/nitro-php

Basic usage:

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

// Configure API key authorization: ApiKeyAuth
$config = Flyo\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Flyo\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');

$apiInstance = new Flyo\Api\ConfigApi(
    // 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
);

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

Documentation

Read More in the Docs