{"id":16809970,"url":"https://github.com/wowinter13/terrasms_api","last_synced_at":"2025-03-17T10:24:03.809Z","repository":{"id":150344187,"uuid":"224618423","full_name":"wowinter13/terrasms_api","owner":"wowinter13","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-03T19:06:11.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T05:47:00.456Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":false,"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/wowinter13.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2019-11-28T09:35:35.000Z","updated_at":"2023-04-03T19:06:17.000Z","dependencies_parsed_at":"2023-07-27T05:15:25.056Z","dependency_job_id":null,"html_url":"https://github.com/wowinter13/terrasms_api","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/wowinter13%2Fterrasms_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wowinter13%2Fterrasms_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wowinter13%2Fterrasms_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wowinter13%2Fterrasms_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wowinter13","download_url":"https://codeload.github.com/wowinter13/terrasms_api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244014133,"owners_count":20383716,"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-13T10:14:18.722Z","updated_at":"2025-03-17T10:24:03.729Z","avatar_url":"https://github.com/wowinter13.png","language":"Ruby","readme":"# TerrasmsApi\n\nRuby client for Terrasms API | Библиотека для API провайдера Terrasms\n\n**Table of Contents**\n\n- [Installation](#installation)\n- [Usage](#usage)\n  - [Quick Demo](#quick-demo)\n  - [Exceptions](#exceptions)\n- [Contributing](#contributing)\n- [License](#license)\n\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'terrasms_api'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install terrasms_api\n\n## Usage\n\n### Quick demo\n\n```ruby\nrequire 'terrasms_api'\n```\n\nFirst, create client using your access token:\n\n```ruby\nclient = TerrasmsApi.new(access_token: 'your.token')\n```\nAfter that simply do some request.\n\n```ruby\n# send sms\n# mandatory_attributes for mostly all requests:\n# - login: your login for Terrasms auth\n# - target: phone or email\n# - sender: public name\n# - message: sms body\n\nclient.post('send', mandatory_attributes)\n```\n\n## Exceptions\n\n```ruby\ndef send_sms\n  client.post('send', attrs)\nrescue TerrasmsApi::RequestError, TerrasmsApi::ConnectionError =\u003e e\n  puts e.message, e.backtrace\nend\n```\n\nName | Description \n---|---\n `TerrasmsApi::RequestError` | Request didn't succeed\n `TerrasmsApi::ConnectionError` | Connection didn't succeed\n\n## Testing\n\n```\nbundle exec rspec\n```\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwowinter13%2Fterrasms_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwowinter13%2Fterrasms_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwowinter13%2Fterrasms_api/lists"}