(vault->connectionCustomMappings)
- list - List connection custom mappings
This endpoint returns a list of custom mappings for a connection.
declare(strict_types=1);
require 'vendor/autoload.php';
use Apideck\Unify;
use Apideck\Unify\Models\Operations;
$sdk = Unify\Apideck::builder()
->setSecurity(
'<YOUR_BEARER_TOKEN_HERE>'
)
->setConsumerId('test-consumer')
->setAppId('dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX')
->build();
$request = new Operations\VaultConnectionCustomMappingsAllRequest(
unifiedApi: 'crm',
serviceId: 'pipedrive',
resource: 'leads',
resourceId: '1234',
);
$response = $sdk->vault->connectionCustomMappings->list(
request: $request
);
if ($response->getCustomMappingsResponse !== null) {
// handle response
}
Parameter | Type | Required | Description |
---|---|---|---|
$request |
Operations\VaultConnectionCustomMappingsAllRequest | ✔️ | The request object to use for the request. |
?Operations\VaultConnectionCustomMappingsAllResponse
Error Type | Status Code | Content Type |
---|---|---|
Errors\BadRequestResponse | 400 | application/json |
Errors\UnauthorizedResponse | 401 | application/json |
Errors\PaymentRequiredResponse | 402 | application/json |
Errors\NotFoundResponse | 404 | application/json |
Errors\UnprocessableResponse | 422 | application/json |
Errors\APIException | 4XX, 5XX | */* |