{"id":23047400,"url":"https://github.com/moceanapi/mocean-sdk-java","last_synced_at":"2026-05-19T14:36:04.963Z","repository":{"id":48289849,"uuid":"139680529","full_name":"MoceanAPI/mocean-sdk-java","owner":"MoceanAPI","description":"✉📲 SDK Library for Java to send SMS for FREE using MoceanAPI sms solution.","archived":false,"fork":false,"pushed_at":"2023-12-26T04:13:20.000Z","size":244,"stargazers_count":0,"open_issues_count":11,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-07T08:11:50.677Z","etag":null,"topics":["java","moceanapi","sms","sms-api","sms-client","sms-messages"],"latest_commit_sha":null,"homepage":"https://moceanapi.com/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MoceanAPI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-04T06:49:26.000Z","updated_at":"2023-12-20T04:00:29.000Z","dependencies_parsed_at":"2023-12-26T05:20:27.171Z","dependency_job_id":"0ffc7aa6-8f93-41a1-809b-c915917ff84f","html_url":"https://github.com/MoceanAPI/mocean-sdk-java","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/MoceanAPI/mocean-sdk-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoceanAPI%2Fmocean-sdk-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoceanAPI%2Fmocean-sdk-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoceanAPI%2Fmocean-sdk-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoceanAPI%2Fmocean-sdk-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MoceanAPI","download_url":"https://codeload.github.com/MoceanAPI/mocean-sdk-java/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MoceanAPI%2Fmocean-sdk-java/sbom","scorecard":{"id":95437,"data":{"date":"2025-08-11","repo":{"name":"github.com/MoceanAPI/mocean-sdk-java","commit":"cce9684489881598abaa73ceb2986748bdd60b72"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Code-Review","score":0,"reason":"Found 0/10 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":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/MoceanAPI/mocean-sdk-java/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/MoceanAPI/mocean-sdk-java/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/MoceanAPI/mocean-sdk-java/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/MoceanAPI/mocean-sdk-java/publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/MoceanAPI/mocean-sdk-java/publish.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1","Warn: no topLevel permission defined: .github/workflows/publish.yml:1","Info: no jobLevel write permissions found"],"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"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 23 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":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-h46c-h94j-95f3","Warn: Project is vulnerable to: GHSA-wf8f-6423-gfxg"],"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-15T08:54:05.788Z","repository_id":48289849,"created_at":"2025-08-15T08:54:05.788Z","updated_at":"2025-08-15T08:54:05.788Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274340921,"owners_count":25267297,"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-09-09T02:00:10.223Z","response_time":80,"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","moceanapi","sms","sms-api","sms-client","sms-messages"],"created_at":"2024-12-15T22:33:28.893Z","updated_at":"2026-05-19T14:36:04.956Z","avatar_url":"https://github.com/MoceanAPI.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"MoceanAPI Client Library for Java \n============================\n[![Maven Release](https://img.shields.io/maven-central/v/com.github.moceanapi/moceanapisdk.svg)](https://mvnrepository.com/artifact/com.github.moceanapi/moceanapisdk)\n[![build](https://github.com/MoceanAPI/mocean-sdk-java/actions/workflows/build.yml/badge.svg)](https://github.com/MoceanAPI/mocean-sdk-java/actions/workflows/build.yml)\n[![codecov](https://img.shields.io/codecov/c/github/MoceanAPI/mocean-sdk-java.svg)](https://codecov.io/gh/MoceanAPI/mocean-sdk-java)\n[![codacy](https://img.shields.io/codacy/grade/c51a73cd91c74edfa1eca25d02497aa9.svg)](https://app.codacy.com/project/MoceanAPI/mocean-sdk-java/dashboard)\n[![license](https://img.shields.io/npm/l/mocean-sdk.svg)](https://www.npmjs.com/package/mocean-sdk)\n\nThis is the Java client library for use Mocean's API. To use this, you'll need a Mocean account. Sign up [for free at \nmoceanapi.com][signup].\n\n * [Installation](#installation)\n * [Usage](#usage)\n * [Example](#example)\n\n## Installation\n\nTo use the client library you'll need to have [created a Mocean account][signup]. \n\n### Maven\n\nAdd the following to the correct place in your project's POM file:\n```xml\n\u003cdependency\u003e\n      \u003cgroupId\u003ecom.github.moceanapi\u003c/groupId\u003e\n      \u003cartifactId\u003emoceanapisdk\u003c/artifactId\u003e\n      \u003cversion\u003e1.x.x\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Gradle\n\nAdd the following to `build.gradle`\n\n```groovy\nrepositories {\n    mavenCentral()\n}\n```\n\nFor Gradle 3.4 or Higher:\n\n```groovy\ndependencies {\n    implementation 'com.github.moceanapi:moceanapisdk:1.x.x'\n}\n```\n\nFor older versions:\n\n```groovy\ndependencies {\n    compile 'com.github.moceanapi:moceanapisdk:1.x.x'\n}\n```\n\n## Usage\n### For version \u003e=1.1.6\nThere are 2 ways to connect to MoceanAPI\n\nOption 1: Create a client with your API token:\n\n```java\nimport com.mocean.system.Mocean;\nimport com.mocean.system.auth.Basic;\n\nBasic credential = new Basic(\"API_TOKEN_HERE\");\nMocean mocean = new Mocean(credential);\n```\n\nOption 2 (legacy): Create a client with your API key and secret:\n\n```java\nimport com.mocean.system.Mocean;\nimport com.mocean.system.auth.Basic;\n\nBasic credential = new Basic(\"API_KEY_HERE\",\"API_SECRET_HERE\");\nMocean mocean = new Mocean(credential);\n```\n\n### For version \u003c1.1.6\nCreate a client with your API key and secret:\n\n```java\nimport com.mocean.system.Mocean;\nimport com.mocean.system.auth.Basic;\n\nBasic credential = new Basic(\"API_KEY_HERE\",\"API_SECRET_HERE\");\nMocean mocean = new Mocean(credential);\n```\n\n## Example\n\nTo use [Mocean's SMS API][doc_sms] to send an SMS message, call the `mocean.sms.send()` method.\n\nThe API can be called directly, using a simple array of parameters, the keys match the [parameters of the API][doc_sms].\n\n```java\nSmsResponse res = mocean.sms()\n            .setFrom(\"MOCEAN\")\n            .setTo(\"60123456789\")\n            .setText(\"Hello World\")\n            .send();\n            \nSystem.out.println(res);\n```\n\n### Responses\n\nFor your convenient, the API response has been parse to specified object.\n\n```java\nSystem.out.println(res);         //show full response string\nSystem.out.println(res.status);  //show response status, \"0\" in this case\n```\n\n## Documentation\n\nKindly visit [MoceanApi Docs][doc_main] for more usage\n\nLicense\n-------\n\nThis library is released under the [MIT License][license]\n\n[signup]: https://dashboard.moceanapi.com/register?medium=github\u0026campaign=java-sdk\n[doc_main]: https://moceanapi.com/docs/?java\n[doc_sms]: https://moceanapi.com/docs/?java#send-sms\n[license]: LICENSE.txt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoceanapi%2Fmocean-sdk-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoceanapi%2Fmocean-sdk-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoceanapi%2Fmocean-sdk-java/lists"}