All URIs are relative to https://api.blockchainapi.com/v1
Method | HTTP request | Description |
---|---|---|
GetCCWebhook | POST /webhook/v1/project/{project_id}/webhook/{webhook_identifier} | Get a webhook |
ListCCProjectWebhooks | POST /webhook/v1/project/{project_id}/webhooks | List project's webhooks |
ValidateCCWebhook | POST /webhook/v1/project/{project_id}/webhook/{webhook_identifier}/validate | Validate a webhook |
CCWebhook GetCCWebhook (string projectId, string webhookIdentifier)
Get a webhook
Retrieve the details of a webhook sent to you. Cost: 0 Credit
(Free) (<a href="#section/Pricing">See Pricing)
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class GetCCWebhookExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://api.blockchainapi.com/v1";
// Configure API key authorization: APIKeyID
Configuration.Default.AddApiKey("APIKeyID", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("APIKeyID", "Bearer");
// Configure API key authorization: APISecretKey
Configuration.Default.AddApiKey("APISecretKey", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("APISecretKey", "Bearer");
var apiInstance = new CCWebhookApi(Configuration.Default);
var projectId = project_WDQskRIfHQxj53N5mk5K; // string | The ID of the project. Created and returned when a project is created.
var webhookIdentifier = webhook/payment.received/payment_EyfDL6CsvFinpUnXgBXaUuqq3hCXa0; // string | The ID of the webhook. Created and returned when a webhook is sent.
try
{
// Get a webhook
CCWebhook result = apiInstance.GetCCWebhook(projectId, webhookIdentifier);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CCWebhookApi.GetCCWebhook: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | string | The ID of the project. Created and returned when a project is created. | |
webhookIdentifier | string | The ID of the webhook. Created and returned when a webhook is sent. |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
400 | Bad request (check response message) | - |
401 | Invalid API key pair in headers | - |
429 | Rate limited | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<CCWebhook> ListCCProjectWebhooks (string projectId)
List project's webhooks
List all webhooks sent to you and their respective responses from your server. Cost: 0 Credit
(Free) (<a href="#section/Pricing">See Pricing)
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class ListCCProjectWebhooksExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://api.blockchainapi.com/v1";
// Configure API key authorization: APIKeyID
Configuration.Default.AddApiKey("APIKeyID", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("APIKeyID", "Bearer");
// Configure API key authorization: APISecretKey
Configuration.Default.AddApiKey("APISecretKey", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("APISecretKey", "Bearer");
var apiInstance = new CCWebhookApi(Configuration.Default);
var projectId = project_WDQskRIfHQxj53N5mk5K; // string | The ID of the project. Created and returned when a project is created.
try
{
// List project's webhooks
List<CCWebhook> result = apiInstance.ListCCProjectWebhooks(projectId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CCWebhookApi.ListCCProjectWebhooks: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | string | The ID of the project. Created and returned when a project is created. |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
400 | Bad request (check response message) | - |
401 | Invalid API key pair in headers | - |
429 | Rate limited | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void ValidateCCWebhook (string projectId, string webhookIdentifier, CCWebhookValidateRequest cCWebhookValidateRequest = null)
Validate a webhook
Validate whether a webhook you received was actually sent from us. Cost: 0 Credit
(Free) (<a href="#section/Pricing">See Pricing)
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class ValidateCCWebhookExample
{
public static void Main()
{
Configuration.Default.BasePath = "https://api.blockchainapi.com/v1";
// Configure API key authorization: APIKeyID
Configuration.Default.AddApiKey("APIKeyID", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("APIKeyID", "Bearer");
// Configure API key authorization: APISecretKey
Configuration.Default.AddApiKey("APISecretKey", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("APISecretKey", "Bearer");
var apiInstance = new CCWebhookApi(Configuration.Default);
var projectId = project_WDQskRIfHQxj53N5mk5K; // string | The ID of the project. Created and returned when a project is created.
var webhookIdentifier = webhook/payment.received/payment_EyfDL6CsvFinpUnXgBXaUuqq3hCXa0; // string | The ID of the webhook. Created and returned when a webhook is sent.
var cCWebhookValidateRequest = new CCWebhookValidateRequest(); // CCWebhookValidateRequest | (optional)
try
{
// Validate a webhook
apiInstance.ValidateCCWebhook(projectId, webhookIdentifier, cCWebhookValidateRequest);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CCWebhookApi.ValidateCCWebhook: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | string | The ID of the project. Created and returned when a project is created. | |
webhookIdentifier | string | The ID of the webhook. Created and returned when a webhook is sent. | |
cCWebhookValidateRequest | CCWebhookValidateRequest | [optional] |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
200 | Valid Webhook | - |
400 | Bad request / invalid webhook (check response message) | - |
401 | Invalid API key pair in headers | - |
429 | Rate limited | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]