https://github.com/mapp-digital/mapp-connect-client-java
Mapp Connect Client Java
https://github.com/mapp-digital/mapp-connect-client-java
Last synced: 3 months ago
JSON representation
Mapp Connect Client Java
- Host: GitHub
- URL: https://github.com/mapp-digital/mapp-connect-client-java
- Owner: mapp-digital
- License: mit
- Created: 2021-08-26T11:40:32.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-10-05T12:44:54.000Z (over 4 years ago)
- Last Synced: 2025-03-01T11:16:10.326Z (over 1 year ago)
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mapp-connect-client-java
Mapp Connect Client Java
This SDK can be used by any application that wants to communicate with Mapp Connect. It wraps up JWT token generation part and all the HTTP communication details.
In order to use it, it's enough to include attached jar file as Java project dependency.
Example usage
Instantiate client and specify API URL, integration ID and API key
MappConnectClient mappConnectClient = new MappConnectClient("https://jamie.g.shortest-route.com/charon", "9c88b780-f470-4e64-a63b-a022f600859e",
"WWbIbZmHxacRrmF4iQ1jHE3SdOZD7RUE");
Get list of prepared messages
Map messages = mappConnectClient.getMessages();
Get list of groups
Map groups = mappConnectClient.getGroups();
Send contact profile to be processed by Mapp Connect and saved by Engage
mappConnectClient.sendUser("{\"email\":\"test@xx.xx\"}");
Each operation can be triggered by sendXxxx method on the client, for now each of them expects the full JSON payload to be provided as an argument.
*Email
*Sms
*Push
*Transaction
*Automation
## Check list of API's in right menu to check required fields for every event.