{"id":15286164,"url":"https://github.com/kianmeng/sms-send-mocean","last_synced_at":"2025-07-04T04:37:37.689Z","repository":{"id":56835782,"uuid":"169835568","full_name":"kianmeng/sms-send-mocean","owner":"kianmeng","description":"SMS::Send driver for Mocean, https://moceanapi.com/","archived":false,"fork":false,"pushed_at":"2019-05-23T11:56:58.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-29T04:42:45.409Z","etag":null,"topics":["api","cpan","mocean","perl","rest","sms"],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kianmeng.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-09T05:32:25.000Z","updated_at":"2019-05-26T15:50:21.000Z","dependencies_parsed_at":"2022-09-07T07:10:35.745Z","dependency_job_id":null,"html_url":"https://github.com/kianmeng/sms-send-mocean","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kianmeng%2Fsms-send-mocean","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kianmeng%2Fsms-send-mocean/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kianmeng%2Fsms-send-mocean/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kianmeng%2Fsms-send-mocean/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kianmeng","download_url":"https://codeload.github.com/kianmeng/sms-send-mocean/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245169889,"owners_count":20571973,"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","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":["api","cpan","mocean","perl","rest","sms"],"created_at":"2024-09-30T15:10:48.952Z","updated_at":"2025-03-23T21:21:59.026Z","avatar_url":"https://github.com/kianmeng.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Cpan license](https://img.shields.io/cpan/l/SMS-Send-Mocean.svg)](https://metacpan.org/release/SMS-Send-Mocean)\n[![Cpan version](https://img.shields.io/cpan/v/SMS-Send-Mocean.svg)](https://metacpan.org/release/SMS-Send-Mocean)\n\n# NAME\n\nSMS::Send::Mocean - SMS::Send driver to send messages via Mocean,\nhttps://moceanapi.com/.\n\n# SYNOPSIS\n\n    use SMS::Send;\n\n    my $gateway = SMS::Send-\u003enew(\n        'Mocean',\n        '_api_key' =\u003e 'foo',\n        '_api_secret' =\u003e 'bar'\n    );\n\n    $gateway-\u003esend_sms(\n        to =\u003e '+60123456789',\n        ext =\u003e 'Hello',\n        _from =\u003e 'foobar'\n    );\n\n# DESCRIPTION\n\nSMS::Send::Mocean is a driver for [SMS::Send](https://metacpan.org/pod/SMS::Send) to send message via Mocean,\nhttps://moceanapi.com/.\n\n# DEVELOPMENT\n\nSource repository at [https://github.com/kianmeng/send-sms-mocean](https://github.com/kianmeng/sms-send-mocean).\n\nHow to contribute? Follow through the [CONTRIBUTING.md](https://github.com/kianmeng/sms-send-mocean/blob/master/CONTRIBUTING.md) document to setup your development environment.\n\n# METHODS\n\n## new(\\_api\\_key, \\_api\\_secret)\n\nConstruct a new SMS::Send instance.\n\n    my $gateway = SMS::Send-\u003enew(\n        'Mocean',\n        '_api_key' =\u003e 'foo',\n        '_api_secret' =\u003e 'bar'\n    );\n\n### \\_api\\_key\n\nCompulsory. The API access key used to make request through web service.\n\n### \\_api\\_secret\n\nCompulsory. The API secret key.\n\n## send\\_sms(to, text, \\_from, \\[%params\\])\n\nSend the SMS text to a mobile user.\n\n    # Default parameters with XML response format if the '_resp_format' field\n    # is not defined.\n    $gateway-\u003esend_sms(\n        to =\u003e '+60123456789',\n        ext =\u003e 'Hello',\n        _from =\u003e 'foobar',\n    );\n\n    # With JSON response format.\n    $gateway-\u003esend_sms(\n        to =\u003e '+60123456789',\n        ext =\u003e 'Hello',\n        _from =\u003e 'foobar',\n        _resp_format =\u003e 'json',\n    );\n\n### to\n\nCompulsory. The required field needed by SMS::Send. Only accept leading-plus\nnumber in the format of \"+99 999 9999\".\n\n### text\n\nCompulsory. The required field needed by SMS::Send. The content of the SMS\nmessage. Depends on the language of the content, there is a limit of characters\nthat can be sent.\n\n### \\_from\n\nCompulsory. The login username of the Mocean API portal.\n\n### \\[%params\\]\n\nOptional. Additional parameters that can be used when sending SMS. Check the\nMocean API documentation on the [available parameters](https://moceanapi.com/docs/#sms-api).\nDue to the design constraints of [SMS::Send::Driver](https://metacpan.org/pod/SMS::Send::Driver), all\nparameters name must start with underscore. For example, '\\_resp\\_format'. This\ndriver will convert the parameter name to equivalent format used by Mocean. In\nthis case, '\\_foo\\_bar' will be formatted as 'mocean-resp-format'.\n\n    $gateway-\u003esend_sms(\n        to =\u003e '+60123456789',\n        ext =\u003e 'Hello',\n        _from =\u003e 'foobar',\n        _resp_format =\u003e 'json',\n        _charset =\u003e 'utf-8',\n    );\n\n# AUTHOR\n\nKian Meng, Ang \u003ckianmeng@cpan.org\u003e\n\n# COPYRIGHT AND LICENSE\n\nThis software is Copyright (c) 2019 Kian Meng, Ang.\n\nThis is free software, licensed under:\n\n    The Artistic License 2.0 (GPL Compatible)\n\n# SEE ALSO\n\n[SMS::Driver](https://metacpan.org/pod/SMS::Driver)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkianmeng%2Fsms-send-mocean","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkianmeng%2Fsms-send-mocean","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkianmeng%2Fsms-send-mocean/lists"}