Skip to content

Latest commit

 

History

History
54 lines (43 loc) · 2.88 KB

File metadata and controls

54 lines (43 loc) · 2.88 KB

Symphony BDK for Java

CircleCI Known Vulnerabilities Maven Central javadoc License: MIT Email

The Symphony BDK for Java helps you to create production-grade Chat Bots and Extension Applications on top of the Symphony REST APIs.

Installation and Getting Started

The reference documentation includes detailed installation instructions as well as a comprehensive getting started guide.

Here is a quick teaser of a complete Symphony BDK application in Java:

public class BotApplication {
    
    public static void main(String[] args) {
      
        final SymphonyBdk bdk = new SymphonyBdk(BdkConfigLoader.loadFromSymphonyDir("config.yaml"));
      
        bdk.activities().register(new SlashCommand("/hello", context -> {
            bdk.messages().send(context.getStreamId(), "<messageML>Hello, World!</messageML>");
        }));
        
        bdk.datafeed().start();
    }
}

Build from Source

The Symphony BDK uses a Maven build. The instructions below use the Maven Wrapper from the root of the source tree. The wrapper script serves as a cross-platform, self-contained bootstrap mechanism for the build system.

Before you start

To build you will need Git and JDK 8 or later. Be sure that your JAVA_HOME environment variable points to the jdk1.8+ folder extracted from the JDK download.

Build from the Command Line

To compile, test and build all jars, use:

./mvnw clean package

Install in local Maven repository

To install all Symphony BDK jars in your local Maven repository, use:

./mvnw clean install

License

The Symphony BDK is Open Source software released under the MIT License.