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(projectId, webhookIdentifier)
Get a webhook
Retrieve the details of a webhook sent to you. `Cost: 0 Credit` (Free) (<a href="#section/Pricing">See Pricing</a>)
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = CCWebhookApi()
val projectId : kotlin.String = project_WDQskRIfHQxj53N5mk5K // kotlin.String | The ID of the project. Created and returned when a project is created.
val webhookIdentifier : kotlin.String = webhook/payment.received/payment_EyfDL6CsvFinpUnXgBXaUuqq3hCXa0 // kotlin.String | The ID of the webhook. Created and returned when a webhook is sent.
try {
val result : CCWebhook = apiInstance.getCCWebhook(projectId, webhookIdentifier)
println(result)
} catch (e: ClientException) {
println("4xx response calling CCWebhookApi#getCCWebhook")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling CCWebhookApi#getCCWebhook")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | kotlin.String | The ID of the project. Created and returned when a project is created. | |
webhookIdentifier | kotlin.String | The ID of the webhook. Created and returned when a webhook is sent. |
Configure APIKeyID: ApiClient.apiKey["APIKeyID"] = "" ApiClient.apiKeyPrefix["APIKeyID"] = "" Configure APISecretKey: ApiClient.apiKey["APISecretKey"] = "" ApiClient.apiKeyPrefix["APISecretKey"] = ""
- Content-Type: Not defined
- Accept: application/json
kotlin.collections.List<CCWebhook> listCCProjectWebhooks(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</a>)
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = CCWebhookApi()
val projectId : kotlin.String = project_WDQskRIfHQxj53N5mk5K // kotlin.String | The ID of the project. Created and returned when a project is created.
try {
val result : kotlin.collections.List<CCWebhook> = apiInstance.listCCProjectWebhooks(projectId)
println(result)
} catch (e: ClientException) {
println("4xx response calling CCWebhookApi#listCCProjectWebhooks")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling CCWebhookApi#listCCProjectWebhooks")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | kotlin.String | The ID of the project. Created and returned when a project is created. |
kotlin.collections.List<CCWebhook>
Configure APIKeyID: ApiClient.apiKey["APIKeyID"] = "" ApiClient.apiKeyPrefix["APIKeyID"] = "" Configure APISecretKey: ApiClient.apiKey["APISecretKey"] = "" ApiClient.apiKeyPrefix["APISecretKey"] = ""
- Content-Type: Not defined
- Accept: application/json
validateCCWebhook(projectId, webhookIdentifier, ccWebhookValidateRequest)
Validate a webhook
Validate whether a webhook you received was actually sent from us. `Cost: 0 Credit` (Free) (<a href="#section/Pricing">See Pricing</a>)
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = CCWebhookApi()
val projectId : kotlin.String = project_WDQskRIfHQxj53N5mk5K // kotlin.String | The ID of the project. Created and returned when a project is created.
val webhookIdentifier : kotlin.String = webhook/payment.received/payment_EyfDL6CsvFinpUnXgBXaUuqq3hCXa0 // kotlin.String | The ID of the webhook. Created and returned when a webhook is sent.
val ccWebhookValidateRequest : CCWebhookValidateRequest = // CCWebhookValidateRequest |
try {
apiInstance.validateCCWebhook(projectId, webhookIdentifier, ccWebhookValidateRequest)
} catch (e: ClientException) {
println("4xx response calling CCWebhookApi#validateCCWebhook")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling CCWebhookApi#validateCCWebhook")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | kotlin.String | The ID of the project. Created and returned when a project is created. | |
webhookIdentifier | kotlin.String | The ID of the webhook. Created and returned when a webhook is sent. | |
ccWebhookValidateRequest | CCWebhookValidateRequest | [optional] |
null (empty response body)
Configure APIKeyID: ApiClient.apiKey["APIKeyID"] = "" ApiClient.apiKeyPrefix["APIKeyID"] = "" Configure APISecretKey: ApiClient.apiKey["APISecretKey"] = "" ApiClient.apiKeyPrefix["APISecretKey"] = ""
- Content-Type: application/json
- Accept: Not defined