Deletes a Scheduled Reaction.
rpc DeleteScheduledReaction
DeleteScheduledReaction
webhook_api.v1.DeleteScheduledReaction
webhook_api.v1.DeleteScheduledReaction
Deletes a Scheduled Reaction.
requests DeleteScheduledReactionRequest
DeleteScheduledReactionRequest
webhook_api.v1.DeleteScheduledReactionRequest
webhook_api.v1.DeleteScheduledReactionRequest
Field | Type | Description |
---|---|---|
api_key | string | API Key as a JWT |
scheduled_reaction_id | string | Scheduled Reaction ID. |
resp, _ := webhookManagerService.DeleteScheduledReaction(ctx, &v1.DeleteScheduledReactionRequest{})
fmt.Println(resp)
const deletescheduledreactionrequest = new DeleteScheduledReactionRequest();
service.deleteScheduledReaction(deletescheduledreactionrequest, (err, value:DeleteScheduledReactionResponse|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 deleteScheduledReactionRequest = new DeleteScheduledReactionRequest{};
var reply = client.DeleteScheduledReaction(deleteScheduledReactionRequest, 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.DeleteScheduledReactionRequest;
import webhook_api.v1.Webhook.DeleteScheduledReactionResponse;
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);
DeleteScheduledReactionRequest req_DeleteScheduledReactionRequest =
DeleteScheduledReactionRequest.newBuilder()
.build();
DeleteScheduledReactionResponse resp = blockStub.deleteScheduledReaction(req_DeleteScheduledReactionRequest);
System.out.println(resp);
channel.shutdown();
}
}
const deletescheduledreactionrequest = new DeleteScheduledReactionRequest();
service.deleteScheduledReaction(deletescheduledreactionrequest, (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::DeleteScheduledReactionRequest;
#[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(
DeleteScheduledReactionRequest{
api_key: None,
scheduled_reaction_id: None
});
// sending request and waiting for response
let response = client.delete_scheduled_reaction(request).await?.into_inner();
println!("RESPONSE={:?}", response);
Ok(())
}
package app
import io.grpc.ManagedChannelBuilder
import webhook_api.v1.Webhook.DeleteScheduledReactionRequest
import webhook_api.v1.Webhook.DeleteScheduledReactionResponse
import webhook_api.v1.WebhookManagerServiceGrpc
fun main() {
val channel = ManagedChannelBuilder
.forAddress("YOUR_WEBHOOK_URL", 443)
.usePlaintext()
.build()
var blockStub = WebhookManagerServiceGrpc.newBlockingStub(channel)
val req_DeleteScheduledReactionRequest = DeleteScheduledReactionRequest.newBuilder()
.build()
val resp = blockStub.deleteScheduledReaction(req_DeleteScheduledReactionRequest)
println(resp)
channel.shutdown()
}
returns DeleteScheduledReactionResponse
DeleteScheduledReactionResponse
webhook_api.v1.DeleteScheduledReactionResponse
webhook_api.v1.DeleteScheduledReactionResponse
{}