Skip to content

Commit

Permalink
Update dependencies and revise authenticator
Browse files Browse the repository at this point in the history
The codebase has been updated with new versions of dependencies, notably including a significant version upgrade for 'saloonphp/saloon' and 'saloonphp/rate-limit-plugin'. Additionally, the old authenticator has been replaced with Saloon's Http, discarding the use of Contracts. This adjustment not only cleans up and streamlines the code, but also matches the changes in our updated dependencies. The shift in Saloon version also necessitated corresponding revisions in the composer.lock file.
  • Loading branch information
Fichtme committed Jan 23, 2024
1 parent 2419101 commit fd3d13d
Show file tree
Hide file tree
Showing 4 changed files with 178 additions and 523 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ $connector = MiddlewareConnector::create(
MiddlewareConnector::BASE_URL_EU_DEV,
);

$response = $connector->getArticleCollectionRequest()->send($mockClient);
$response = $connector->send(new GetArticleCollectionRequest());

$response->status(); // 200, 201, 400, 500 etc...

Expand All @@ -51,7 +51,7 @@ $connector = MiddlewareConnector::createWithRefreshToken(
MiddlewareConnector::BASE_URL_EU_DEV,
);

$response = $connector->getArticleCollectionRequest()->send($mockClient);
$response = $connector->send(new GetArticleCollectionRequest());
$response->status(); // 200, 201, 400, 500 etc...
$response->json();
```
Expand Down
Loading

0 comments on commit fd3d13d

Please sign in to comment.