Skip to content

Commit

Permalink
Finished GNP Auth and SimSwap MVP implementation (#475)
Browse files Browse the repository at this point in the history
* Finished GNP Auth and SimSwap MVP implementation

* Add documentation

* PSR-4 fix

* clean imports

* Finished GNP Auth and SimSwap MVP implementation

* bring psr7 trait back (#482)

* Fix broken git history
  • Loading branch information
SecondeJK committed Jun 24, 2024
1 parent 08cedbd commit 1859210
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Conversation/ClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ class ClientFactory
{
public function __invoke(ContainerInterface $container): Client
{
/** @var APIResource $api */
$api = $container->make(APIResource::class);
$api->setIsHAL(true)
->setErrorsOn200(false)
->setAuthHandler(new KeypairHandler())
->setAuthHandlers(new KeypairHandler())
->setBaseUrl('https://api.nexmo.com/v1/conversations');

return new Client($api);
Expand Down
2 changes: 1 addition & 1 deletion test/Conversation/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function setUp(): void
->setCollectionName('conversations')
->setErrorsOn200(false)
->setClient($this->vonageClient->reveal())
->setAuthHandler(new Client\Credentials\Handler\KeypairHandler())
->setAuthHandlers(new Client\Credentials\Handler\KeypairHandler())
->setBaseUrl('https://api.nexmo.com/v1/conversations');

$this->conversationsClient = new ConversationClient($this->api);
Expand Down

0 comments on commit 1859210

Please sign in to comment.