Ping

Ping a Webhook.

rpc Ping

webhook_api.v1.Ping

Ping a Webhook.

requests PingRequest

webhook_api.v1.PingRequest

FieldTypeDescription
api_keystringAPI Key, JWT.
messagestringPing Message.
resp, _ := webhookManagerService.Ping(ctx, &v1.PingRequest{
  ApiKey: "API_KEY",
  Message: "MESSAGE",
})
fmt.Println(resp)
const pingrequest = new PingRequest();
pingrequest.setApiKey("API_KEY");
pingrequest.setMessage("MESSAGE");

service.ping(pingrequest, (err, value:PingResponse|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 pingRequest = new PingRequest{
        ApiKey = "API_KEY",
        Message = "MESSAGE",
      };
      var reply = client.Ping(pingRequest, 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.PingRequest;
import webhook_api.v1.Webhook.PingResponse;
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);
    
    PingRequest req_PingRequest =
        PingRequest.newBuilder()
          .setApiKey("API_KEY")
          .setMessage("MESSAGE")
          .build();
    PingResponse resp = blockStub.ping(req_PingRequest);
    System.out.println(resp);
    channel.shutdown();
  }
}
const pingrequest = new PingRequest();
pingrequest.setApiKey("API_KEY");
pingrequest.setMessage("MESSAGE");

service.ping(pingrequest, (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::PingRequest;

#[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(
    PingRequest{
      api_key: String::from("API_KEY"),
      message: String::from("MESSAGE")
    });
// sending request and waiting for response
  let response = client.ping(request).await?.into_inner();
  println!("RESPONSE={:?}", response);
  Ok(())
}
package app

import io.grpc.ManagedChannelBuilder
import webhook_api.v1.Webhook.PingRequest
import webhook_api.v1.Webhook.PingResponse
import webhook_api.v1.WebhookManagerServiceGrpc

fun main() {
    val channel = ManagedChannelBuilder
            .forAddress("YOUR_WEBHOOK_URL", 443)
            .usePlaintext()
            .build()
    var blockStub = WebhookManagerServiceGrpc.newBlockingStub(channel)
    
    val req_PingRequest = PingRequest.newBuilder()
          .setApiKey("API_KEY")
          .setMessage("MESSAGE")
          .build()
    val resp = blockStub.ping(req_PingRequest)
    println(resp)
    channel.shutdown()
}


returns PingResponse

webhook_api.v1.PingResponse

FieldTypeDescription
messagestringPing Message.
{
  "message": "MESSAGE"
}