Skip to content

Latest commit

 

History

History
68 lines (49 loc) · 4.17 KB

File metadata and controls

68 lines (49 loc) · 4.17 KB

Vault.CustomMappings

Overview

Available Operations

  • list - List custom mappings

list

This endpoint returns a list of custom mappings.

Example Usage

package hello.world;

import com.apideck.unify.Apideck;
import com.apideck.unify.models.errors.*;
import com.apideck.unify.models.operations.VaultCustomMappingsAllResponse;
import java.lang.Exception;

public class Application {

    public static void main(String[] args) throws BadRequestResponse, UnauthorizedResponse, PaymentRequiredResponse, NotFoundResponse, UnprocessableResponse, Exception {

        Apideck sdk = Apideck.builder()
                .consumerId("test-consumer")
                .appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX")
                .apiKey(System.getenv().getOrDefault("API_KEY", ""))
            .build();

        VaultCustomMappingsAllResponse res = sdk.vault().customMappings().list()
                .unifiedApi("crm")
                .serviceId("pipedrive")
                .call();

        if (res.getCustomMappingsResponse().isPresent()) {
            System.out.println(res.getCustomMappingsResponse().get());
        }
    }
}

Parameters

Parameter Type Required Description Example
consumerId Optional<String> ID of the consumer which you want to get or push data from test-consumer
appId Optional<String> The ID of your Unify application dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX
unifiedApi String ✔️ Unified API crm
serviceId String ✔️ Service ID of the resource to return pipedrive

Response

VaultCustomMappingsAllResponse

Errors

Error Type Status Code Content Type
models/errors/BadRequestResponse 400 application/json
models/errors/UnauthorizedResponse 401 application/json
models/errors/PaymentRequiredResponse 402 application/json
models/errors/NotFoundResponse 404 application/json
models/errors/UnprocessableResponse 422 application/json
models/errors/APIException 4XX, 5XX */*