{"id":22196657,"url":"https://github.com/druids/smsbrana","last_synced_at":"2025-03-24T22:40:12.164Z","repository":{"id":62434639,"uuid":"135252422","full_name":"druids/smsbrana","owner":"druids","description":"A connector for SMS brána https://www.smsbrana.cz","archived":false,"fork":false,"pushed_at":"2018-06-06T11:31:31.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-30T02:14:12.177Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","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/druids.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-05-29T06:40:10.000Z","updated_at":"2018-06-06T11:31:32.000Z","dependencies_parsed_at":"2022-11-01T21:02:19.517Z","dependency_job_id":null,"html_url":"https://github.com/druids/smsbrana","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/druids%2Fsmsbrana","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/druids%2Fsmsbrana/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/druids%2Fsmsbrana/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/druids%2Fsmsbrana/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/druids","download_url":"https://codeload.github.com/druids/smsbrana/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245366207,"owners_count":20603438,"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-12-02T14:16:00.734Z","updated_at":"2025-03-24T22:40:12.132Z","avatar_url":"https://github.com/druids.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"smsbrana\n========\n\nA connector for SMS brána [https://www.smsbrana.cz](https://www.smsbrana.cz)\n\n[![CircleCI](https://circleci.com/gh/druids/smsbrana.svg?style=svg)](https://circleci.com/gh/druids/smsbrana)\n[![Dependencies Status](https://jarkeeper.com/druids/smsbrana/status.png)](https://jarkeeper.com/druids/smsbrana)\n[![License](https://img.shields.io/badge/MIT-Clause-blue.svg)](https://opensource.org/licenses/MIT)\n\n\nLeiningen/Boot\n--------------\n\n```clojure\n[smsbrana \"0.2.0\"]\n```\n\n\nDocumentation\n-------------\n\nAll functions are designed to return errors instead of throwing exceptions.\n\nAll API calls return a tuple within following structure: [keyword response http-response] where keyword can be:\n- :ok when a response is a success and parsed\n- :error when a response is parsed but it's an error response\n- :error-malformed when a response is not an expected XML structure\n- :error-unmarshalling when a response is not a valid XML\n\nA `response` is a parsed body of an original HTTP response.\n\nTo be able to run examples this line is needed:\n\n```clojure\n(require '[smsbrana.core :as sms])\n```\n\n### send\n\nSends a SMS within `opts`.\n\n```clojure\n(sms/send {:login \"login\", :password \"password\", :message \"TEST\", :number \"+420777666555\"})\n;; [:ok\n;;  {:credit 1523.32, :price 1.1, :sms_count 1, :sms_id \"377351\", :err 0}\n;;  {:request-time 386, ...\n```\n\nExample of an error response:\n\n```clojure\n(sms/send {:login \"login\", :password \"password\", :message \"TEST\", :number \"+420777666555\"})\n;; [:error\n;;  {:err 4}\n;;  {:request-time 386, ...\n```\n\nOr\n\n```clojure\n(sms/send {:login \"login\", :password \"password\", :message \"TEST\", :number \"+420777666555\"})\n;; [:error-unmarshalling\n;;  nil\n;;  {:request-time 386, ...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdruids%2Fsmsbrana","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdruids%2Fsmsbrana","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdruids%2Fsmsbrana/lists"}