Delete Prevalidation
rpc DeletePrevalidation
DeletePrevalidation
webhook_api.v1.DeletePrevalidation
webhook_api.v1.DeletePrevalidation
Delete Prevalidation
requests DeletePrevalidationRequest
DeletePrevalidationRequest
webhook_api.v1.DeletePrevalidationRequest
webhook_api.v1.DeletePrevalidationRequest
Field | Type | Description |
---|---|---|
api_key | string | API Key as a JWT |
prevalidation_id | string | Prevalidation ID. |
resp, _ := webhookManagerService.DeletePrevalidation(ctx, &v1.DeletePrevalidationRequest{
ApiKey: "API_KEY",
PrevalidationId: "PREVALIDATION_ID1",
})
fmt.Println(resp)
const deleteprevalidationrequest = new DeletePrevalidationRequest();
deleteprevalidationrequest.setApiKey("API_KEY");
deleteprevalidationrequest.setPrevalidationId("PREVALIDATION_ID1");
service.deletePrevalidation(deleteprevalidationrequest, (err, value:DeletePrevalidationResponse|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 deletePrevalidationRequest = new DeletePrevalidationRequest{
ApiKey = "API_KEY",
PrevalidationId = "PREVALIDATION_ID1",
};
var reply = client.DeletePrevalidation(deletePrevalidationRequest, 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.DeletePrevalidationRequest;
import webhook_api.v1.Webhook.DeletePrevalidationResponse;
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);
DeletePrevalidationRequest req_DeletePrevalidationRequest =
DeletePrevalidationRequest.newBuilder()
.setApiKey("API_KEY")
.setPrevalidationId("PREVALIDATION_ID1")
.build();
DeletePrevalidationResponse resp = blockStub.deletePrevalidation(req_DeletePrevalidationRequest);
System.out.println(resp);
channel.shutdown();
}
}
const deleteprevalidationrequest = new DeletePrevalidationRequest();
deleteprevalidationrequest.setApiKey("API_KEY");
deleteprevalidationrequest.setPrevalidationId("PREVALIDATION_ID1");
service.deletePrevalidation(deleteprevalidationrequest, (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::DeletePrevalidationRequest;
#[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(
DeletePrevalidationRequest{
api_key: String::from("API_KEY"),
prevalidation_id: String::from("PREVALIDATION_ID1")
});
// sending request and waiting for response
let response = client.delete_prevalidation(request).await?.into_inner();
println!("RESPONSE={:?}", response);
Ok(())
}
package app
import io.grpc.ManagedChannelBuilder
import webhook_api.v1.Webhook.DeletePrevalidationRequest
import webhook_api.v1.Webhook.DeletePrevalidationResponse
import webhook_api.v1.WebhookManagerServiceGrpc
fun main() {
val channel = ManagedChannelBuilder
.forAddress("YOUR_WEBHOOK_URL", 443)
.usePlaintext()
.build()
var blockStub = WebhookManagerServiceGrpc.newBlockingStub(channel)
val req_DeletePrevalidationRequest = DeletePrevalidationRequest.newBuilder()
.setApiKey("API_KEY")
.setPrevalidationId("PREVALIDATION_ID1")
.build()
val resp = blockStub.deletePrevalidation(req_DeletePrevalidationRequest)
println(resp)
channel.shutdown()
}
returns DeletePrevalidationResponse
DeletePrevalidationResponse
webhook_api.v1.DeletePrevalidationResponse
webhook_api.v1.DeletePrevalidationResponse
{}