Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 2 KB

File metadata and controls

44 lines (31 loc) · 2 KB

Spring Boot Starter for Zenvia Webhook with Web MVC

License Maven Central

Spring Boot Starter module will enable your Spring Boot application to work with Zenvia CPaaS SDK Webhook with Spring Web MVC.

What you need

  • An Zenvia account
  • An api token
  • An implementation of MessageEventCallback and/or MessageStatusEventCallback to handle the callback events

Include the dependency

For Apache Maven:

<dependency>
	<groupId>com.zenvia</groupId>
	<artifactId>zenvia-api-sdk-starter-webhook-webmvc</artifactId>
	<version>1.1.0</version>
</dependency>

For Gradle:

dependencies {
    implementation group: 'com.zenvia', name: 'zenvia-api-sdk-starter-webhook-webmvc', version: '1.1.0'
}

Configure your properties

You can configure your applications properties with environment variables, system properties, or configuration files. Take a look at the Spring Boot documentation for more details.

For webhook configuration, all properties is an optional configuration.

Property Default Details
zenvia.api.sdk.webhook.path / The URI path to serve requests for webhook call
zenvia.api.sdk.webhook.url null URL to be used in subscription creation
zenvia.api.sdk.webhook.channel null Channel to trigger the callbacks for subscription to be created