amandiobm/rustici-engine-api-v2-client-php

Rustici Engine API V2 Client (PHP)

22.0.2 2024-02-05 23:01 UTC

This package is auto-updated.

Last update: 2025-02-06 01:56:54 UTC


README

Rustici Engine API

This PHP package is automatically generated by the Swagger Codegen project:

  • API version: 2.0
  • Build package: io.swagger.codegen.languages.PhpClientCodegen

Requirements

PHP 5.5 and later

Installation & Usage

Composer

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

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/amandiobm/rustici-engine-api-v2-client-php.git"
    }
  ],
  "require": {
    "amandiobm/rustici-engine-api-v2-client-php": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/SwaggerClient-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');

// Configure HTTP basic authorization: basic
$config = RusticiSoftware\Engine\V2\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');
// Configure OAuth2 access token for authorization: oauth
$config = RusticiSoftware\Engine\V2\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$apiInstance = new RusticiSoftware\Engine\V2\Api\AboutApi(
    // 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
);
$engine_tenant_name = "engine_tenant_name_example"; // string | optional tenant for this request

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

?>

Documentation for API Endpoints

All URIs are relative to http://localhost/api/v2/

Documentation For Models

Documentation For Authorization

basic

  • Type: HTTP basic authentication

oauth

  • Type: OAuth
  • Flow: implicit
  • Authorization URL: /authorize
  • Scopes:
  • read: Grants read access
  • write: Grants write access
  • delete: Grants deletion access
  • admin: Grants read, write, and account management access
  • admin:read: Grants read-only admin access
  • admin:createTenant: Grants tenant creation access
  • admin:deleteData: Grants ability to delete an entire tenants data or do PII deletion
  • admin:writeConfiguration: Grants write administrative configuration settings
  • admin:writeCredential: Grants ability to create a credential
  • admin:connector: Grants access to administer content connectors
  • read:connectorContent: Grants access to read content connector list of available content
  • read:course: Grants read access to course resources
  • write:course: Grants write access to course resources
  • delete:course: Grants deletion access to course resources
  • read:dispatch: Grants read access to dispatch resources
  • write:dispatch: Grants write access to dispatch resources
  • delete:dispatch: Grants deletion access to dispatch resources
  • read:ping: Grants read access to the ping resource
  • read:about: Grants read access to about resource
  • read:registration: Grants read access to registration resources
  • write:registration: Grants write access to registration resources
  • delete:registration: Grants deletion access to registration resources
  • read:xapicredential: Grants read access to xapi credential resources
  • write:xapicredential: Grants write access to xapi credential resources
  • delete:xapicredential: Grants deletion access to xapi credential resources
  • read:xapipipe: Grants read access to xapi pipe resources
  • write:xapipipe: Grants write access to xapi pipe resources
  • delete:xapipipe: Grants deletion access to xapi pipe resources
  • configure:server: Includes server administrator settings when managing configuration
  • request:secrets: Grants read access to encrypted configuration settings
  • write:player: Grants write access to the player resources
  • read:player: Grants read access to the player resources
  • read:contentVault: Grants read access to the content vault resources
  • pens:collect: Grants access to make PENS collect requests

Author