Skip to content

nsotgui/manychat-java-api

Repository files navigation

ManyChat Java API

This is a java implementation of the ManyChat API.

Build Status GitHub Bintray

Table of Contents

Setup
Usage
Contributing
License

Setup

Add the library to your build file.

build.gradle:

...
repositories {
    jcenter()
}
...
dependencies {
    compile 'io.github.nsotgui:manychat-api:0.0.5'
}

Usage

// Instantiates the client
ManyChatAPIClient manyChatAPIClient = ManyChatAPIFactory.getManyChatAPIClient("<manychat api key>");

// Gets the custom fields
List<CustomField> customFields = manyChatAPIClient.getCustomFields();
for (CustomField field : customFields)
    System.out.println("Field: " + field);

See Example for a simple example.

See Spring Framework for an example using the Spring Framework.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

This library is available under the Apache License, Version 2.0.