{"id":24824350,"url":"https://github.com/messagemedia/messages-java-sdk","last_synced_at":"2025-10-13T22:31:54.404Z","repository":{"id":27291839,"uuid":"111405089","full_name":"messagemedia/messages-java-sdk","owner":"messagemedia","description":"MessageMedia Java SDK for sending and receiving messages","archived":false,"fork":false,"pushed_at":"2025-07-13T09:31:21.000Z","size":402,"stargazers_count":7,"open_issues_count":8,"forks_count":8,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-09-17T20:51:02.393Z","etag":null,"topics":["java","messagemedia","messaging","sms","sms-api","sms-client","sms-gateway","sms-messages"],"latest_commit_sha":null,"homepage":"https://developers.messagemedia.com/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/messagemedia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-20T12:02:17.000Z","updated_at":"2025-07-13T09:31:24.000Z","dependencies_parsed_at":"2023-01-14T06:24:39.782Z","dependency_job_id":null,"html_url":"https://github.com/messagemedia/messages-java-sdk","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/messagemedia/messages-java-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messagemedia%2Fmessages-java-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messagemedia%2Fmessages-java-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messagemedia%2Fmessages-java-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messagemedia%2Fmessages-java-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/messagemedia","download_url":"https://codeload.github.com/messagemedia/messages-java-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messagemedia%2Fmessages-java-sdk/sbom","scorecard":{"id":637366,"data":{"date":"2025-08-11","repo":{"name":"github.com/messagemedia/messages-java-sdk","commit":"567394c145a65502d771401a259c7a16a8ff0bac"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.8,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":2,"reason":"3 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/18 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.1.0 not signed: https://api.github.com/repos/messagemedia/messages-java-sdk/releases/10101508","Warn: release artifact v1.0.0 not signed: https://api.github.com/repos/messagemedia/messages-java-sdk/releases/8602275","Warn: release artifact v1.1.0 does not have provenance: https://api.github.com/repos/messagemedia/messages-java-sdk/releases/10101508","Warn: release artifact v1.0.0 does not have provenance: https://api.github.com/repos/messagemedia/messages-java-sdk/releases/8602275"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 15 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"57 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-h46c-h94j-95f3","Warn: Project is vulnerable to: GHSA-wf8f-6423-gfxg","Warn: Project is vulnerable to: GHSA-27xj-rqx5-2255","Warn: Project is vulnerable to: GHSA-288c-cq4h-88gq","Warn: Project is vulnerable to: GHSA-4w82-r329-3q67","Warn: Project is vulnerable to: GHSA-57j2-w4cx-62h2","Warn: Project is vulnerable to: GHSA-58pp-9c76-5625","Warn: Project is vulnerable to: GHSA-5949-rw7g-wx7w","Warn: Project is vulnerable to: GHSA-5p34-5m6p-p58g","Warn: Project is vulnerable to: GHSA-5r5r-6hpj-8gg9","Warn: Project is vulnerable to: GHSA-5ww9-j83m-q7qx","Warn: Project is vulnerable to: GHSA-6fpp-rgj9-8rwc","Warn: Project is vulnerable to: GHSA-758m-v56v-grj4","Warn: Project is vulnerable to: GHSA-85cw-hj65-qqv9","Warn: Project is vulnerable to: GHSA-89qr-369f-5m5x","Warn: Project is vulnerable to: GHSA-8c4j-34r4-xr8g","Warn: Project is vulnerable to: GHSA-8w26-6f25-cm9x","Warn: Project is vulnerable to: GHSA-95cm-88f5-f2c7","Warn: Project is vulnerable to: GHSA-9gph-22xh-8x98","Warn: Project is vulnerable to: GHSA-9m6f-7xcq-8vf8","Warn: Project is vulnerable to: GHSA-9vvp-fxw6-jcxr","Warn: Project is vulnerable to: GHSA-c265-37vj-cwcc","Warn: Project is vulnerable to: GHSA-c2q3-4qrh-fm48","Warn: Project is vulnerable to: GHSA-cf6r-3wgc-h863","Warn: Project is vulnerable to: GHSA-cmfg-87vq-g5g4","Warn: Project is vulnerable to: GHSA-cvm9-fjm9-3572","Warn: Project is vulnerable to: GHSA-f3j5-rmmp-3fc5","Warn: Project is vulnerable to: GHSA-f9xh-2qgp-cq57","Warn: Project is vulnerable to: GHSA-fmmc-742q-jg75","Warn: Project is vulnerable to: GHSA-fqwf-pjwf-7vqv","Warn: Project is vulnerable to: GHSA-gjmw-vf9h-g25v","Warn: Project is vulnerable to: GHSA-gwp4-hfv6-p7hw","Warn: Project is vulnerable to: GHSA-gww7-p5w4-wrfv","Warn: Project is vulnerable to: GHSA-h3cw-g4mq-c5x2","Warn: Project is vulnerable to: GHSA-h4rc-386g-6m85","Warn: Project is vulnerable to: GHSA-h822-r4r5-v8jg","Warn: Project is vulnerable to: GHSA-j823-4qch-3rgm","Warn: Project is vulnerable to: GHSA-jjjh-jjxp-wpff","Warn: Project is vulnerable to: GHSA-m6x4-97wx-4q27","Warn: Project is vulnerable to: GHSA-mc6h-4qgp-37qh","Warn: Project is vulnerable to: GHSA-mph4-vhrx-mv67","Warn: Project is vulnerable to: GHSA-mx7p-6679-8g3q","Warn: Project is vulnerable to: GHSA-p43x-xfjf-5jhr","Warn: Project is vulnerable to: GHSA-q93h-jc49-78gg","Warn: Project is vulnerable to: GHSA-qjw2-hr98-qgfh","Warn: Project is vulnerable to: GHSA-qmqc-x3r4-6v39","Warn: Project is vulnerable to: GHSA-r3gr-cxrf-hg25","Warn: Project is vulnerable to: GHSA-r695-7vr9-jgc2","Warn: Project is vulnerable to: GHSA-rf6r-2c4q-2vwg","Warn: Project is vulnerable to: GHSA-rgv9-q543-rqg4","Warn: Project is vulnerable to: GHSA-rpr3-cw39-3pxh","Warn: Project is vulnerable to: GHSA-v3xw-c963-f5hc","Warn: Project is vulnerable to: GHSA-v585-23hc-c647","Warn: Project is vulnerable to: GHSA-vfqx-33qm-g869","Warn: Project is vulnerable to: GHSA-wh8g-3j2c-rqj5","Warn: Project is vulnerable to: GHSA-w33c-445m-f8w7","Warn: Project is vulnerable to: GHSA-7r82-7xv7-xcpj"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T09:35:53.638Z","repository_id":27291839,"created_at":"2025-08-21T09:35:53.638Z","updated_at":"2025-08-21T09:35:53.638Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017160,"owners_count":26085983,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","messagemedia","messaging","sms","sms-api","sms-client","sms-gateway","sms-messages"],"created_at":"2025-01-30T20:29:28.715Z","updated_at":"2025-10-13T22:31:54.398Z","avatar_url":"https://github.com/messagemedia.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 🚨 Repository Deprecated – No Longer Maintained\n\n\u003e **Important:** This SDK is no longer maintained.\n\nThis repository (`Messages Java SDK`) has not been actively maintained for several years and is now officially **deprecated**. No further updates, bug fixes, or support will be provided.\n\nIf you're building applications that integrate with the Sinch MessageMedia Messaging API, we recommend using direct REST API calls instead. You can find the complete and up-to-date API documentation here:  \n👉 [MessageMedia Messaging REST API Docs](https://messagemedia.github.io/documentation/#tag/Messages)\n\nThe source code remains available under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0). Feel free to fork and update it to suit your needs.\n\n\n# MessageMedia Messages Java SDK\n[![Pull Requests Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat)](http://makeapullrequest.com)\n[![maven](https://img.shields.io/maven-metadata/v/http/central.maven.org/maven2/com/messagemedia/sdk/messages/maven-metadata.xml.svg)](https://mvnrepository.com/artifact/com.messagemedia.sdk/messages)\n\nThe MessageMedia Messages API provides a number of endpoints for building powerful two-way messaging applications.\n\n![Isometric](https://i.imgur.com/jJeHwf5.png)\n\n## Table of Contents\n* [Authentication](#closed_lock_with_key-authentication)\n* [Errors](#interrobang-errors)\n* [Information](#newspaper-information)\n  * [Slack and Mailing List](#slack-and-mailing-list)\n  * [Bug Reports](#bug-reports)\n  * [Contributing](#contributing)\n* [Installation](#star-installation)\n* [Get Started](#clapper-get-started)\n* [API Documentation](#closed_book-api-documentation)\n* [Need help?](#confused-need-help)\n* [License](#page_with_curl-license)\n\n## :closed_lock_with_key: Authentication\n\nAuthentication is done via API keys. Sign up at https://developers.messagemedia.com/register/ to get your API keys.\n\nRequests are authenticated using HTTP Basic Auth or HMAC. Provide your API key as the auth_user_name and API secret as the auth_password.\n\n## :interrobang: Errors\n\nOur API returns standard HTTP success or error status codes. For errors, we will also include extra information about what went wrong encoded in the response as JSON. The most common status codes are listed below.\n\n#### HTTP Status Codes\n\n| Code      | Title       | Description |\n|-----------|-------------|-------------|\n| 400 | Invalid Request | The request was invalid |\n| 401 | Unauthorized | Your API credentials are invalid |\n| 403 | Disabled feature | Feature not enabled |\n| 404 | Not Found |\tThe resource does not exist |\n| 50X | Internal Server Error | An error occurred with our API |\n\n## :newspaper: Information\n\n#### Slack and Mailing List\n\nIf you have any questions, comments, or concerns, please join our Slack channel:\nhttps://developers.messagemedia.com/collaborate/slack/\n\nAlternatively you can email us at:\ndevelopers@messagemedia.com\n\n#### Bug reports\n\nIf you discover a problem with the SDK, we would like to know about it. You can raise an [issue](https://github.com/messagemedia/signingkeys-nodejs-sdk/issues) or send an email to: developers@messagemedia.com\n\n#### Contributing\n\nWe welcome your thoughts on how we could best provide you with SDKs that would simplify how you consume our services in your application. You can fork and create pull requests for any features you would like to see or raise an [issue](https://github.com/messagemedia/signingkeys-nodejs-sdk/issues)\n\n## :star: Installation\nAt present the jars are available from a public maven repository.\n\nUse the following dependency in your project to grab via Maven:\n```\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.messagemedia.sdk\u003c/groupId\u003e\n  \u003cartifactId\u003emessages\u003c/artifactId\u003e\n  \u003cversion\u003e2.0.0\u003c/version\u003e\n\u003c/dependency\u003e\n\n```\n\n## :clapper: Get Started\nIt's easy to get started. Simply enter the API Key and secret you obtained from the [MessageMedia Developers Portal](https://developers.messagemedia.com) into the code snippet below and a mobile number you wish to send to.\n\n### Send an SMS\nDestination numbers (`destination_number`) should be in the [E.164](http://en.wikipedia.org/wiki/E.164) format. For example, `+61491570156`.\n```java\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport com.messagemedia.messages.MessageMediaMessagesClient;\nimport com.messagemedia.messages.controllers.MessagesController;\nimport com.messagemedia.messages.http.client.APICallBack;\nimport com.messagemedia.messages.http.client.HttpContext;\nimport com.messagemedia.messages.models.Message;\nimport com.messagemedia.messages.models.SendMessagesRequest;\nimport com.messagemedia.messages.models.SendMessagesResponse;\n\npublic class App\n{\n    public static void main( String[] args )\n    {\n\n     // Configuration parameters and credentials\n        String authUserName = \"API_KEY\"; // The username to use with basic/HMAC authentication\n        String authPassword = \"API_SECRET\"; // The password to use with basic/HMAC authentication\n        boolean useHmacAuth = false; // Change to true if you are using HMAC keys\n\n        MessageMediaMessagesClient client = new MessageMediaMessagesClient(authUserName, authPassword, useHmacAuth);\n        MessagesController messages = client.getMessages();\n\n        Message message = new Message();\n        message.setContent(\"My message\");\n        message.setDestinationNumber(\"+61466412529\");\n\n        List\u003cMessage\u003e messagesList = new ArrayList\u003cMessage\u003e();\n        messagesList.add(message);\n\n        SendMessagesRequest body = new SendMessagesRequest();\n        body.setMessages(messagesList);\n\n        messages.sendMessagesAsync(body, new APICallBack\u003cSendMessagesResponse\u003e() {\n\t\t        public void onSuccess(HttpContext context, SendMessagesResponse response) {\n\t\t            // TODO success callback handler\n\t\t        \tSystem.out.println(\"success\");\n\t\t        }\n\t\t        public void onFailure(HttpContext context, Throwable error) {\n\t\t            // TODO failure callback handler\n\t\t        \tSystem.out.println(\"failure\");\n\t\t        }\n\t\t\t});\n    }\n}\n```\n\n### Send an MMS\n* Destination numbers (`destination_number`) should be in the [E.164](http://en.wikipedia.org/wiki/E.164) format. For example, `+61491570156`.\n```java\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.List;\n\nimport com.messagemedia.messages.MessageMediaMessagesClient;\nimport com.messagemedia.messages.controllers.MessagesController;\nimport com.messagemedia.messages.http.client.APICallBack;\nimport com.messagemedia.messages.http.client.HttpContext;\nimport com.messagemedia.messages.models.FormatEnum;\nimport com.messagemedia.messages.models.Message;\nimport com.messagemedia.messages.models.SendMessagesRequest;\nimport com.messagemedia.messages.models.SendMessagesResponse;\n\npublic class App\n{\n    public static void main( String[] args )\n    {\n\n     // Configuration parameters and credentials\n        String authUserName = \"API_KEY\"; // The username to use with basic/HMAC authentication\n        String authPassword = \"API_SECRET\"; // The password to use with basic/HMAC authentication\n        boolean useHmacAuth = false; // Change to true if you are using HMAC keys\n\n        MessageMediaMessagesClient client = new MessageMediaMessagesClient(authUserName, authPassword, useHmacAuth);\n        MessagesController messages = client.getMessages();\n\n        Message message = new Message();\n        message.setContent(\"My message\");\n        message.setDestinationNumber(\"+61466412529\");\n        message.setFormat(FormatEnum.MMS);\n        message.setSubject(\"This is an MMS\");\n        message.setMedia(new ArrayList\u003cString\u003e(Arrays.asList(\"https://upload.wikimedia.org/wikipedia/commons/6/6a/L80385-flash-superhero-logo-1544.png\")));\n\n\n        List\u003cMessage\u003e messagesList = new ArrayList\u003cMessage\u003e();\n        messagesList.add(message);\n\n        SendMessagesRequest body = new SendMessagesRequest();\n        body.setMessages(messagesList);\n\n        messages.sendMessagesAsync(body, new APICallBack\u003cSendMessagesResponse\u003e() {\n\t\t        public void onSuccess(HttpContext context, SendMessagesResponse response) {\n\t\t            // TODO success callback handler\n\t\t        \tSystem.out.println(\"success\");\n\t\t        }\n\t\t        public void onFailure(HttpContext context, Throwable error) {\n\t\t            // TODO failure callback handler\n\t\t        \tSystem.out.println(\"failure\");\n\t\t        }\n\t\t\t});\n    }\n}\n```\n\n### Get Status of a Message\nYou can get a messsage ID from a sent message by looking at the `message_id` from the response of the above example.\n```java\nimport com.messagemedia.messages.MessageMediaMessagesClient;\nimport com.messagemedia.messages.controllers.MessagesController;\nimport com.messagemedia.messages.http.client.APICallBack;\nimport com.messagemedia.messages.http.client.HttpContext;\nimport com.messagemedia.messages.models.GetMessageStatusResponse;\n\npublic class App {\n\n    public static void main(String[] args) throws Throwable {\n        // Configuration parameters and credentials\n        String authUserName = \"API_KEY\"; // The username to use with basic/HMAC authentication\n        String authPassword = \"API_SECRET\"; // The password to use with basic/HMAC authentication\n        boolean useHmacAuth = false; // Change to true if you are using HMAC keys\n\n        MessageMediaMessagesClient client = new MessageMediaMessagesClient(authUserName, authPassword, useHmacAuth);\n        MessagesController messages = client.getMessages();\n\n        String messageId = \"YOUR_MESSAGE_ID\";\n        messages.getMessageStatusAsync(messageId, new APICallBack\u003cGetMessageStatusResponse\u003e() {\n\t        public void onSuccess(HttpContext context, GetMessageStatusResponse response) {\n\t            // TODO success callback handler\n\t        \tSystem.out.println(\"success\");\n\t        }\n\t        public void onFailure(HttpContext context, Throwable error) {\n\t            // TODO failure callback handler\n\t        \tSystem.out.println(\"failure\");\n\t        }\n\t\t});\n    }\n\n}\n```\n\n### Get replies to a message\nYou can check for replies that are sent to your messages\n```java\nimport com.messagemedia.messages.MessageMediaMessagesClient;\nimport com.messagemedia.messages.controllers.MessagesController;\nimport com.messagemedia.messages.controllers.RepliesController;\nimport com.messagemedia.messages.http.client.APICallBack;\nimport com.messagemedia.messages.http.client.HttpContext;\nimport com.messagemedia.messages.models.CheckRepliesResponse;\nimport com.messagemedia.messages.models.GetMessageStatusResponse;\n\npublic class App {\n\n    public static void main(String[] args) throws Throwable {\n        // Configuration parameters and credentials\n        String authUserName = \"API_KEY\"; // The username to use with basic/HMAC authentication\n        String authPassword = \"API_SECRET\"; // The password to use with basic/HMAC authentication\n        boolean useHmacAuth = false; // Change to true if you are using HMAC keys\n\n        MessageMediaMessagesClient client = new MessageMediaMessagesClient(authUserName, authPassword, useHmacAuth);\n        RepliesController replies = client.getReplies();\n\n        replies.checkRepliesAsync(new APICallBack\u003cCheckRepliesResponse\u003e() {\n\t        public void onSuccess(HttpContext context, CheckRepliesResponse response) {\n\t            // TODO success callback handler\n\t        \tSystem.out.println(\"success\");\n\t        }\n\t        public void onFailure(HttpContext context, Throwable error) {\n\t            // TODO failure callback handler\n\t        \tSystem.out.println(\"failure\");\n\t        }\n\t\t});  \n\n    }\n\n}\n```\n\n### Check Delivery Reports\nThis endpoint allows you to check for delivery reports to inbound and outbound messages.\n```java\nimport com.messagemedia.messages.MessageMediaMessagesClient;\nimport com.messagemedia.messages.controllers.DeliveryReportsController;\nimport com.messagemedia.messages.http.client.APICallBack;\nimport com.messagemedia.messages.http.client.HttpContext;\nimport com.messagemedia.messages.models.CheckDeliveryReportsResponse;\n\n\npublic class App\n{\n    public static void main( String[] args )\n    {\n\n     // Configuration parameters and credentials\n        String authUserName = \"API_KEY\"; // The username to use with basic/HMAC authentication\n        String authPassword = \"API_SECRET\"; // The password to use with basic/HMAC authentication\n        boolean useHmacAuth = false; // Change to true if you are using HMAC keys\n\n        MessageMediaMessagesClient client = new MessageMediaMessagesClient(authUserName, authPassword, useHmacAuth);\n        DeliveryReportsController deliveryReports = client.getDeliveryReports();\n\n        deliveryReports.checkDeliveryReportsAsync(new APICallBack\u003cCheckDeliveryReportsResponse\u003e() {\n\t\t        public void onSuccess(HttpContext context, CheckDeliveryReportsResponse response) {\n\t\t            // TODO success callback handler\n\t\t        \tSystem.out.println(\"success\");\n\t\t        }\n\t\t        public void onFailure(HttpContext context, Throwable error) {\n\t\t            // TODO failure callback handler\n\t\t        \tSystem.out.println(\"failure\");\n\t\t        }\n\t\t\t});\n    }\n}\n```\n\n### Confirm Delivery Reports\nThis endpoint allows you to mark delivery reports as confirmed so they're no longer returned by the Check Delivery Reports function.\n```java\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport com.messagemedia.messages.MessageMediaMessagesClient;\nimport com.messagemedia.messages.controllers.DeliveryReportsController;\nimport com.messagemedia.messages.http.client.APICallBack;\nimport com.messagemedia.messages.http.client.HttpContext;\nimport com.messagemedia.messages.models.CheckDeliveryReportsResponse;\nimport com.messagemedia.messages.models.ConfirmDeliveryReportsAsReceivedRequest;\nimport com.messagemedia.messages.models.DynamicResponse;\n\n\npublic class App\n{\n    public static void main( String[] args )\n    {\n\n     // Configuration parameters and credentials\n        String authUserName = \"API_KEY\"; // The username to use with basic/HMAC authentication\n        String authPassword = \"API_SECRET\"; // The password to use with basic/HMAC authentication\n        boolean useHmacAuth = false; // Change to true if you are using HMAC keys\n\n        MessageMediaMessagesClient client = new MessageMediaMessagesClient(authUserName, authPassword, useHmacAuth);\n        DeliveryReportsController deliveryReports = client.getDeliveryReports();\n\n        ConfirmDeliveryReportsAsReceivedRequest body = new ConfirmDeliveryReportsAsReceivedRequest();\n        List\u003cString\u003e reportIds = new ArrayList\u003cString\u003e();\n        reportIds.add(\"delivery-report-id\");\n\n        deliveryReports.confirmDeliveryReportsAsReceivedAsync(body, new APICallBack\u003cDynamicResponse\u003e() {\n\t\t        public void onSuccess(HttpContext context, DynamicResponse response) {\n\t\t            // TODO success callback handler\n\t\t        \tSystem.out.println(\"success\");\n\t\t        }\n\t\t        public void onFailure(HttpContext context, Throwable error) {\n\t\t            // TODO failure callback handler\n\t\t        \tSystem.out.println(\"failure\");\n\t\t        }\n\t\t\t});\n    }\n}\n```\n\n### Check credits remaining (Prepaid accounts only)\nThis endpoint allows you to check for credits remaining on your prepaid account.\n```java\nimport com.messagemedia.messages.MessageMediaMessagesClient;\nimport com.messagemedia.messages.controllers.MessagesController;\nimport com.messagemedia.messages.http.client.APICallBack;\nimport com.messagemedia.messages.http.client.HttpContext;\nimport com.messagemedia.messages.models.DynamicResponse;\n\n\npublic class App\n{\n    public static void main( String[] args )\n    {\n\n     // Configuration parameters and credentials\n        String authUserName = \"API_KEY\"; // The username to use with basic/HMAC authentication\n        String authPassword = \"API_SECRET\"; // The password to use with basic/HMAC authentication\n        boolean useHmacAuth = false; // Change to true if you are using HMAC keys\n\n        MessageMediaMessagesClient client = new MessageMediaMessagesClient(authUserName, authPassword, useHmacAuth);\n        MessagesController messages = client.getMessages();\n        \n        messages.checkCreditsRemainingAsync(new APICallBack\u003cDynamicResponse\u003e() {\n\t\t        public void onSuccess(HttpContext context, DynamicResponse response) {\n\t\t            // TODO success callback handler\n\t\t        \tSystem.out.println(response.toString());\n\t\t        }\n\t\t        public void onFailure(HttpContext context, Throwable error) {\n\t\t            // TODO failure callback handler\n\t\t        \tSystem.out.println(\"failure\");\n\t\t        }\n\t\t\t});\n    }\n}\n```\n\n## :closed_book: API Reference Documentation\nCheck out the [full API documentation](https://developers.messagemedia.com/code/messages-api-documentation/) for more detailed information.\n\n## :confused: Need help?\nPlease contact developer support at developers@messagemedia.com or check out the developer portal at [developers.messagemedia.com](https://developers.messagemedia.com/)\n\n## :page_with_curl: License\nApache License. See the [LICENSE](LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmessagemedia%2Fmessages-java-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmessagemedia%2Fmessages-java-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmessagemedia%2Fmessages-java-sdk/lists"}