Please be aware that the Mambu Java Client repository has been archived because is not maintained anymore, it won't benefit by latest updates in terms of functionality and security patches. Repository will become read-only together will all pull requests. The only source of documentation and specifications for API is https://api.mambu.com/.
The Mambu Java Client library is an open source library to interact with Mambu's APIs from your Java project. The library interacts with Mambu's REST APIs.
Using the original class files from the Mambu project, the library allows you to easily interact with Mambu via the APIs to retrieve and store information.
The library is continuously updated each time new functionalities are added to the Mambu's REST APIs and it is released once with the main Mambu product.
To use the Mambu Java API Wrapper, please include the following jars in your build path
There is a list of services which are provided through a factory. The list will be updated constantly and currently contains:
To use the factory, some date must be provided in order to set it up:
MambuAPIServiceFactory serviceFactory = MambuAPIServiceFactory.getFactory(
"mydomain.mambu.com", "username", "password");
OR
MambuAPIServiceFactory serviceFactory = MambuAPIServiceFactory.getFactory(
"mydomain.mambu.com", "username", "password", "user agent header value");
OR
MambuAPIServiceFactory serviceFactory = MambuAPIServiceFactory.getFactoryWithApiKey(
"mydomain.mambu.com", "DiiCtz7KgQnOi6vdkP1aRw9dCbseINot", "user agent header value");
After this step, each service can be taken through a simple call like:
ClientService clientService = serviceFactory.getClientService();
See the classes from demo package for a few more examples of using the library
Or check out the javadocs here: http://mambu-gmbh.github.io/Mambu-APIs-Java/
This is a community project and we'd love if you can contribute to make the Mambu API wrapper for Java better.
The project uses Maven for the build process. To make contributions to the project, fork it on GitHub, checkout the project and import it into Eclipse (or your favourite Java IDE) as a Maven 2 project.
Ensure to write JUnit tests for all contributions and rerun all existing tests (under /test) to ensure a high code quality.
When you're done with your changes, commit and push them to your GitHub fork and create a pull request so that we can review your code and incorporate the changes.
The Mambu team updates the Mambu models jar to account for changes in new releases as needed.