com.greenapi.client.examples.WebhookExample Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of whatsapp-api-client-java Show documentation
Show all versions of whatsapp-api-client-java Show documentation
WhatsApp java client Green API
package com.greenapi.client.examples;
import com.greenapi.client.pkg.api.webhook.WebhookConsumer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* Use "main" instead "webhookExample" in real code.
*/
@SpringBootApplication
public class WebhookExample {
public static void webhookExample(String[] args) {
var context = SpringApplication.run(WebhookExample.class, args);
var webhookConsumer = context.getBean(WebhookConsumer.class);
webhookConsumer.start(System.out::println);
}
}