{"id":16765215,"url":"https://github.com/devlato/sms24x7","last_synced_at":"2025-03-16T11:26:07.883Z","repository":{"id":29730958,"uuid":"33274222","full_name":"devlato/sms24x7","owner":"devlato","description":"Convenient Node.JS API for senging texts over sms24x7.ru","archived":false,"fork":false,"pushed_at":"2015-04-02T12:03:04.000Z","size":148,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-22T23:26:57.476Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://sms24x7.ru","language":"JavaScript","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/devlato.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":"2015-04-01T21:34:03.000Z","updated_at":"2020-02-27T05:07:56.000Z","dependencies_parsed_at":"2022-06-29T19:34:55.976Z","dependency_job_id":null,"html_url":"https://github.com/devlato/sms24x7","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlato%2Fsms24x7","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlato%2Fsms24x7/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlato%2Fsms24x7/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlato%2Fsms24x7/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devlato","download_url":"https://codeload.github.com/devlato/sms24x7/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243859930,"owners_count":20359616,"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":[],"created_at":"2024-10-13T05:28:46.947Z","updated_at":"2025-03-16T11:26:07.848Z","avatar_url":"https://github.com/devlato.png","language":"JavaScript","readme":"# sms24x7-client\n\nA simple util/module that allows to send text messages via sms24x7.ru SMS service. \n\nIt contains library and cmd util. \n\n\n## INSTALLATION\n```sh\nnpm install -g sms24x7-client\n```\n\n\n## USAGE\n```sh\nsms24x7-client --email=your-account-email@example.com --password=your-account-password --phone=receiver-phone --message=your-text-message [--sender=sender-name-string]\n```\n\n\n## USAGE IN CODE\n```javascript\nvar SmsSender, smsSender, Minimist, cmdArgs; \n\n\nSmsSender = require('sms24x7-client'); \nMinimist  = require('minimist'); \n\n\ncmdArgs = Minimist(process.argv.slice(2));\n\n\nsmsSender = new SmsSender({\n\tconnection: {\n\t\tforceHttps: true\n\t},\n\tauth: {\n\t\temail:    cmdArgs.email,\n\t\tpassword: cmdArgs.password\n\t}\n}); \nsmsSender\n\t.send(cmdArgs.phone, cmdArgs.message, cmdArgs.sender)\n\t.then(function(response) {\n\t\tconsole.log(response); \n\t})\n\t.catch(function(error) {\n\t\tconsole.log(error);\n\t}); \n\n```\nAvailable options while creating SmsSender instance: \n\n```javascript\nvar smsSender = new SmsSender({\n\tdefaultSender: 'your-sender-name',\n\tconnection:    {\n\t\thost:              'api.sms24x7.ru',  // API host, default is api.sms24x7.ru\n\t\tforceHttps:        false,             // Use HTTPS connection (default is true)\n\t\tdefaultHttpMethod: 'GET',             // HTTP method (work with GET and POST only)\n\t\tforceFullResponse: true,              // Is response object full or simplified\n\t\tapiVersion:        '1.1',             // API version, default is 1.1\n\t\tdataType:          'JSON',            // Data format, JSON is preferred\n\t\tphonesAsJson:      true               // Send phone list as JSON (true is preferred)\n\t},\n\tauth: {\n\t\temail:    null,                       // Your sms24x7.ru account email\n\t\tpassword: null                        // Your sms24x7.ru account password\n\t}\n});\n```\n\nThis repo is open for pull requests and contributions. \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevlato%2Fsms24x7","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevlato%2Fsms24x7","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevlato%2Fsms24x7/lists"}