Skip to content

Latest commit

 

History

History
67 lines (48 loc) · 3.29 KB

File metadata and controls

67 lines (48 loc) · 3.29 KB

ConnectionCustomMappings

(vault->connectionCustomMappings)

Overview

Available Operations

  • list - List connection custom mappings

list

This endpoint returns a list of custom mappings for a connection.

Example Usage

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
}

Parameters

Parameter Type Required Description
$request Operations\VaultConnectionCustomMappingsAllRequest ✔️ The request object to use for the request.

Response

?Operations\VaultConnectionCustomMappingsAllResponse

Errors

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 */*