Skip to content

factorial-io/libreja-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 

Repository files navigation

libreja API

Installation

As long as this project is not available at packagist.org, add this repo to your composer.json:

{
  "repositories": [
    {
      "type": "vcs",
      "url": "[email protected]:factorial-io/libreja-api.git"
    }
  ]
}

Then require this project via composer as dev dependency:

composer require factorial-io/libreja-api:dev-main

This should download the project and install it into vendor.

Usage

use Factorial\Libreja\LibrejaClient;
use Factorial\Libreja\Environment\TestEnvironment;
// Creating an environment
$credentials = [
  'nick' => '<<NICK>>',
  'password' => '<<PASSWORD>>'
];

$environment = new TestEnvironment();
$client = new LibrejaClient($environment, $credentials);

Use Admin Client to get Users

$client = app(LibrejaManagement::class)->adminClient();
$response_complete_user_list = $client->execute(new UserList());
$response_users_pro_library = $client->execute(new UserListLibrary(123));
/**
{
  "id": "123",
  "lastname": " foo",
  "firstname": "bar"
},
{
  "id": "456",
  "lastname": " foo2",
  "firstname": "bar22"
},
*/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages