All URIs are relative to https://api.originstamp.com
| Method | HTTP request | Description |
|---|---|---|
| getWebhookStatus | POST /v3/webhook/information | Webhook |
| registerWebhookNotification | POST /v3/webhook/register | Webhook |
| triggerTimestampWebhook | POST /v3/webhook/start | Dev |
DefaultOfWebhookResponse getWebhookStatus(authorization, webhookRequest)
Webhook
RESTful interface to receive the status of a webhook. Based on the input parameters (target URL, hash and currency), we look up the most recent entry in the notification queue.This method is intended to support the webhook integration.
// Import classes:
//import com.originstamp.api.client.ApiException;
//import com.originstamp.api.WebhookApi;
WebhookApi apiInstance = new WebhookApi();
String authorization = "authorization_example"; // String | A valid API key is essential for authorization to handle the request.
WebhookRequest webhookRequest = new WebhookRequest(); // WebhookRequest | DTO for registering webhook information.
try {
DefaultOfWebhookResponse result = apiInstance.getWebhookStatus(authorization, webhookRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WebhookApi#getWebhookStatus");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| authorization | String | A valid API key is essential for authorization to handle the request. | |
| webhookRequest | WebhookRequest | DTO for registering webhook information. |
[API Key Authorization](../README.md#API Key Authorization)
- Content-Type: application/json
- Accept: application/json
DefaultOfVoid registerWebhookNotification(authorization, webhookRequest)
Webhook
Method which allows a subscription for a webhook notification. If this method is called, a new entry is added to notification queue that is triggered as soon as a tamper-proof timestamp or the hash is created. An empty data payload means that the entry was created successfully.
// Import classes:
//import com.originstamp.api.client.ApiException;
//import com.originstamp.api.WebhookApi;
WebhookApi apiInstance = new WebhookApi();
String authorization = "authorization_example"; // String | A valid API key is essential for authorization to handle the request.
WebhookRequest webhookRequest = new WebhookRequest(); // WebhookRequest | DTO for querying webhook information.
try {
DefaultOfVoid result = apiInstance.registerWebhookNotification(authorization, webhookRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WebhookApi#registerWebhookNotification");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| authorization | String | A valid API key is essential for authorization to handle the request. | |
| webhookRequest | WebhookRequest | DTO for querying webhook information. |
[API Key Authorization](../README.md#API Key Authorization)
- Content-Type: application/json
- Accept: application/json
DefaultOfstring triggerTimestampWebhook(authorization, manualWebhookRequest)
Dev
With this interface you can trigger manual webhook to see how a webhook looks like. Please use a hash, that was already timestamped before such as https://redir.originstamp.com/hash/9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08 . Usually, the webhook is triggered as soon as the tamper-proof time stamp with the selected crypto currency has been created.
// Import classes:
//import com.originstamp.api.client.ApiException;
//import com.originstamp.api.WebhookApi;
WebhookApi apiInstance = new WebhookApi();
String authorization = "authorization_example"; // String | A valid API key is essential for authorization to handle the request.
ManualWebhookRequest manualWebhookRequest = new ManualWebhookRequest(); // ManualWebhookRequest | DTO for webhook request.
try {
DefaultOfstring result = apiInstance.triggerTimestampWebhook(authorization, manualWebhookRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WebhookApi#triggerTimestampWebhook");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| authorization | String | A valid API key is essential for authorization to handle the request. | |
| manualWebhookRequest | ManualWebhookRequest | DTO for webhook request. |
- Content-Type: application/json
- Accept: application/json