Refactored classes and functionality, added more data caching, working on topic parser.

This commit is contained in:
conky
2022-10-18 02:16:43 +03:00
parent 058bbfbc03
commit a102009ec1
10 changed files with 311 additions and 173 deletions

View File

@@ -4,14 +4,6 @@ namespace Toloka\PhpApi;
interface ClientInterface {
/**
* Get Toloka base url.
*
* @return string
* Absolute URL to toloka.
*/
public function getBaseUrl(): string;
/**
* Login using credentials.
*
@@ -22,6 +14,7 @@ interface ClientInterface {
*
* @throws \Toloka\PhpApi\Exception\Auth\InvalidAuthCredentials
* @throws \Toloka\PhpApi\Exception\Auth\TooManyLoginAttempts
* @throws \Toloka\PhpApi\Exception\Auth\AuthException
* @throws \Psr\Http\Client\ClientExceptionInterface
*/
public function login(string $login, string $password): void;