Skip to content

Latest commit

 

History

History
60 lines (42 loc) · 3.41 KB

README.md

File metadata and controls

60 lines (42 loc) · 3.41 KB

CreateCallback

(Vault.CreateCallback)

Overview

Available Operations

  • State - Create Callback State

State

This endpoint creates a callback state that can be used to issue requests to the callback endpoint.

Example Usage

using ApideckUnifySdk;
using ApideckUnifySdk.Models.Components;
using ApideckUnifySdk.Models.Requests;

var sdk = new Apideck(
    apiKey: "<YOUR_BEARER_TOKEN_HERE>",
    consumerId: "test-consumer",
    appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX"
);

VaultCreateCallbackStateRequest req = new VaultCreateCallbackStateRequest() {
    ServiceId = "pipedrive",
    UnifiedApi = "crm",
    CreateCallbackState = new CreateCallbackState() {
        RedirectUri = "https://example.com/callback",
    },
};

var res = await sdk.Vault.CreateCallback.StateAsync(req);

// handle response

Parameters

Parameter Type Required Description
request VaultCreateCallbackStateRequest ✔️ The request object to use for the request.

Response

VaultCreateCallbackStateResponse

Errors

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