Skip to content
3 changes: 2 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2024 Thiago Matos
Copyright 2026 Thoth Open Metadata
Copyright 2026 Lepidus Tecnologia

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ $works = $client->works([

#### Mutations

To execute mutations, authentication with a Thoth account's credentials is required.
To execute mutations, provide a valid personal access token to the client.

```php
$client->login($email, $password);
$client->setToken($token);
```

Mutations can be executed by providing an instance of the model class corresponding to the mutation type. To delete mutations, only the object's ID is required. When the operation is successful, the object's ID is returned.
Expand All @@ -104,8 +104,7 @@ A QueryException is thrown in case of an error in the request to the GraphQL API
```php
try {
$work = new \ThothApi\GraphQL\Models\Work([
'fullTitle' => 'Foo Bar',
'title' => 'Foo',
'doi' => 'https://doi.org/10.00000/00000000',
]);
$workId = $client->createWork($work);
} catch (\ThothApi\Exception\QueryException $exception) {
Expand Down Expand Up @@ -220,6 +219,6 @@ Developed by [Lepidus Tecnologia](https://github.com/lepidus).

Licensed under the Apache License, Version 2.0 - [See the License file.](/LICENSE)

Copyright (c) 2024 Lepidus Tecnologia
Copyright (c) 2024-2026 Lepidus Tecnologia

Copyright (c) 2024 Thoth
Copyright (c) 2024-2026 Thoth Open Metadata
11 changes: 5 additions & 6 deletions docs/README-es.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ $works = $client->works([

#### Mutaciones

Para ejecutar mutaciones es necesario autenticarse con las credenciales de una cuenta de Thoth.
Para ejecutar mutaciones, proporcione al cliente un personal access token valido.

```php
$client->login($email, $password);
$client->setToken($token);
```

Las mutaciones pueden ejecutarse proporcionando una instancia de la clase modelo correspondiente al tipo de mutación. Para las mutaciones de eliminación, solo es necesario proporcionar la ID del objeto. Cuando la operación se realiza con éxito, se devuelve la ID del objeto.
Expand All @@ -96,8 +96,7 @@ Se lanza una excepción del tipo *QueryException* en caso de error en la solicit
```php
try {
$work = new \ThothApi\GraphQL\Models\Work([
'fullTitle' => 'Foo Bar',
'title' => 'Foo',
'doi' => 'https://doi.org/10.00000/00000000',
]);
$workId = $client->createWork($work);
} catch (\ThothApi\Exception\QueryException $exception) {
Expand Down Expand Up @@ -212,6 +211,6 @@ Desarrollado por [Lepidus Tecnologia](https://github.com/lepidus).

Licenciado bajo la Licencia Apache, Versión 2.0 - [Consulta el archivo de licencia.](/LICENSE)

Copyright (c) 2024 Lepidus Tecnologia
Copyright (c) 2024-2026 Lepidus Tecnologia

Copyright (c) 2024 Thoth
Copyright (c) 2024-2026 Thoth Open Metadata
11 changes: 5 additions & 6 deletions docs/README-pt_BR.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ $works = $client->works([

#### Mutações

Para executar mutações é necessário realizar a autenticação com as credenciais de uma conta Thoth.
Para executar mutações, forneça ao cliente um personal access token válido.

```php
$client->login($email, $password);
$client->setToken($token);
```

Mutações podem ser executadas fornecendo uma instância da classe modelo correspondente ao tipo da mutação. Para mutações de exclusão, é necessário apenas fornecer o ID do objeto. Quando a operação é bem-sucedida, o ID do objeto é retornado.
Expand All @@ -96,8 +96,7 @@ Uma exceção do tipo *QueryException* é lançada em caso de erro na solicitaç
```php
try {
$work = new \ThothApi\GraphQL\Models\Work([
'fullTitle' => 'Foo Bar',
'title' => 'Foo',
'doi' => 'https://doi.org/10.00000/00000000',
]);
$workId = $client->createWork($work);
} catch (\ThothApi\Exception\QueryException $exception) {
Expand Down Expand Up @@ -212,6 +211,6 @@ Desenvolvido por [Lepidus Tecnologia](https://github.com/lepidus).

Licenciado sob a Licença Apache, Versão 2.0 - [Veja o arquivo de licença.](/LICENSE)

Copyright (c) 2024 Lepidus Tecnologia
Copyright (c) 2024-2026 Lepidus Tecnologia

Copyright (c) 2024 Thoth
Copyright (c) 2024-2026 Thoth Open Metadata
33 changes: 0 additions & 33 deletions src/GraphQL/Account.php

This file was deleted.

Loading
Loading