Hello everyone,
I am trying to integrate the pipedrive PHP SDK. It seems that there are several issues with it.
Notably, the fact that there is a required OneOfStringNumberMap class, yet it seems to be missing.
Is there a fix that would allow it to work?
Thank you all.
Hi and welcome! Could you please share a minimal code snippet that would help us reproduce the issue? Thanks!
Thank you! There it is:
<?php
use GuzzleHttp\Client;
use Pipedrive\versions\v2\Api\PersonsApi;
class Test
{
private const API_KEY_IDENTIFIER = 'x-api-token';
public function test()
{
$id = 42;
$configV2 = (new ConfigurationV2())->setApiKey(
self::API_KEY_IDENTIFIER,
'xxxxxxx'
);
$client = new Client();
$personsApi = new PersonsApi($client, $configV2);
$personsApi->getPerson($id);
}
}