Retries a Webhook Event.
rpc RetryEvent
RetryEvent
webhook_api.v1.RetryEvent
webhook_api.v1.RetryEvent
Retries a Webhook Event.
requests RetryEventRequest
RetryEventRequest
webhook_api.v1.RetryEventRequest
webhook_api.v1.RetryEventRequest
Field | Type | Description |
---|---|---|
api_key | string | API Key, JWT. |
event_id | string | Event ID. |
webhook_id | string | Webhook ID. |
resp, _ := webhookManagerService.RetryEvent(ctx, &v1.RetryEventRequest{
ApiKey: "API_KEY",
EventId: "EVENT_ID",
WebhookId: "WEBHOOK_ID",
})
fmt.Println(resp)
const retryeventrequest = new RetryEventRequest();
retryeventrequest.setApiKey("API_KEY");
retryeventrequest.setEventId("EVENT_ID");
retryeventrequest.setWebhookId("WEBHOOK_ID");
service.retryEvent(retryeventrequest, (err, value:RetryEventResponse|null) => {
const resp = JSON.stringify(err ? err : value);
console.log("received ", resp);
})
using System;
using Grpc.Core;
using WebhookApi.V1;
namespace main
{
class Program
{
static void Main(string[] args)
{
Channel channel = new Channel("YOUR_WEBHOOK_URL:443", ChannelCredentials.Insecure);
var client = new WebhookManagerService.WebhookManagerServiceClient(channel);
var headers = new Metadata();
var retryEventRequest = new RetryEventRequest{
ApiKey = "API_KEY",
EventId = "EVENT_ID",
WebhookId = "WEBHOOK_ID",
};
var reply = client.RetryEvent(retryEventRequest, headers);
Console.WriteLine("Response: " + reply);
channel.ShutdownAsync().Wait();
}
}
}
package demo;
import io.grpc.Channel;
import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;
import webhook_api.v1.Webhook.RetryEventRequest;
import webhook_api.v1.Webhook.RetryEventResponse;
import webhook_api.v1.WebhookManagerServiceGrpc;
public class App {
public static void main(String[] args) {
ManagedChannel channel = ManagedChannelBuilder
.forAddress("YOUR_WEBHOOK_URL", 443)
.usePlaintext()
.build();
WebhookManagerServiceGrpc.WebhookManagerServiceBlockingStub blockStub =
WebhookManagerServiceGrpc.newBlockingStub(channel);
RetryEventRequest req_RetryEventRequest =
RetryEventRequest.newBuilder()
.setApiKey("API_KEY")
.setEventId("EVENT_ID")
.setWebhookId("WEBHOOK_ID")
.build();
RetryEventResponse resp = blockStub.retryEvent(req_RetryEventRequest);
System.out.println(resp);
channel.shutdown();
}
}
const retryeventrequest = new RetryEventRequest();
retryeventrequest.setApiKey("API_KEY");
retryeventrequest.setEventId("EVENT_ID");
retryeventrequest.setWebhookId("WEBHOOK_ID");
service.retryEvent(retryeventrequest, (err, value) => {
const resp = JSON.stringify(err ? err : value);
console.log("received ", resp);
})
extern crate grpc-sdks;
use tonic::transport::Channel;
use grpc-sdks::webhook_api::v1::webhook_manager_service_client::WebhookManagerServiceClient;
use grpc-sdks::webhook_api::v1::RetryEventRequest;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let channel = Channel::from_static("YOUR_WEBHOOK_URL")
.connect()
.await?;
let mut client = WebhookManagerServiceClient::new(channel);
let request = tonic::Request::new(
RetryEventRequest{
api_key: String::from("API_KEY"),
event_id: String::from("EVENT_ID"),
webhook_id: String::from("WEBHOOK_ID")
});
// sending request and waiting for response
let response = client.retry_event(request).await?.into_inner();
println!("RESPONSE={:?}", response);
Ok(())
}
package app
import io.grpc.ManagedChannelBuilder
import webhook_api.v1.Webhook.RetryEventRequest
import webhook_api.v1.Webhook.RetryEventResponse
import webhook_api.v1.WebhookManagerServiceGrpc
fun main() {
val channel = ManagedChannelBuilder
.forAddress("YOUR_WEBHOOK_URL", 443)
.usePlaintext()
.build()
var blockStub = WebhookManagerServiceGrpc.newBlockingStub(channel)
val req_RetryEventRequest = RetryEventRequest.newBuilder()
.setApiKey("API_KEY")
.setEventId("EVENT_ID")
.setWebhookId("WEBHOOK_ID")
.build()
val resp = blockStub.retryEvent(req_RetryEventRequest)
println(resp)
channel.shutdown()
}
returns RetryEventResponse
RetryEventResponse
webhook_api.v1.RetryEventResponse
webhook_api.v1.RetryEventResponse
{}