{"id":18513335,"url":"https://github.com/jbox-web/ovh-rest","last_synced_at":"2025-05-14T12:20:34.266Z","repository":{"id":224582639,"uuid":"763643175","full_name":"jbox-web/ovh-rest","owner":"jbox-web","description":"OVH Rest client for Ruby","archived":false,"fork":false,"pushed_at":"2025-03-04T21:17:08.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-14T12:19:52.222Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/jbox-web.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-02-26T17:07:41.000Z","updated_at":"2025-03-04T21:17:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"d5d3f51c-f278-4f9a-97d9-d87322945e7c","html_url":"https://github.com/jbox-web/ovh-rest","commit_stats":null,"previous_names":["jbox-web/ovh-rest"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbox-web%2Fovh-rest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbox-web%2Fovh-rest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbox-web%2Fovh-rest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbox-web%2Fovh-rest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jbox-web","download_url":"https://codeload.github.com/jbox-web/ovh-rest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254140805,"owners_count":22021225,"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-11-06T15:37:41.324Z","updated_at":"2025-05-14T12:20:34.245Z","avatar_url":"https://github.com/jbox-web.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OVH Rest client\n\n[![GitHub license](https://img.shields.io/github/license/jbox-web/ovh-rest.svg)](https://github.com/jbox-web/ovh-rest/blob/master/LICENSE)\n[![GitHub release](https://img.shields.io/github/release/jbox-web/ovh-rest.svg)](https://github.com/jbox-web/ovh-rest/releases/latest)\n[![CI](https://github.com/jbox-web/ovh-rest/workflows/CI/badge.svg)](https://github.com/jbox-web/ovh-rest/actions)\n[![Code Climate](https://codeclimate.com/github/jbox-web/ovh-rest/badges/gpa.svg)](https://codeclimate.com/github/jbox-web/ovh-rest)\n[![Test Coverage](https://codeclimate.com/github/jbox-web/ovh-rest/badges/coverage.svg)](https://codeclimate.com/github/jbox-web/ovh-rest/coverage)\n\nOVH Rest client is a tiny helper library based on [faraday](https://github.com/lostisland/faraday), wrapping the authentication parts and simplifying interaction with OVH API in Ruby programs.\n\n## Installation\n\nPut this in your `Gemfile` :\n\n```ruby\ngit_source(:github){ |repo_name| \"https://github.com/#{repo_name}.git\" }\n\ngem 'ovh', github: 'jbox-web/ovh-rest', tag: '1.0.0'\n```\n\nthen run `bundle install`.\n\n## Usage\n\n```ruby\nrequire 'ovh-rest'\n\novh = OvhRest::Client.new(\n  application_key: \u003capplication_key\u003e,\n  application_secret: \u003capplication_secret\u003e,\n  consumer_key: \u003cconsumer_key\u003e\n)\n\n# Get sms account status\nresult = ovh.get(\"/sms/sms-xx12345-1\")\n\nputs YAML.dump(result)\n=\u003e\n{\n  \"status\": \"enable\",\n  \"creditsLeft\": 42,\n  \"name\": \"sms-xx12345-1\",\n  \"userQuantityWithQuota\": 0,\n  \"description\": \"\",\n[...]\n}\n\n# Send sms\nresult = ovh.post(\"/sms/sms-xx12345-1/jobs\", {\n  \"charset\" =\u003e \"UTF-8\",\n  \"class\" =\u003e \"phoneDisplay\",\n  \"coding\" =\u003e \"7bit\",\n  \"priority\" =\u003e \"high\",\n  \"validityPeriod\" =\u003e 2880\n  \"message\" =\u003e \"Dude! Disk is CRITICAL!\",\n  \"receivers\" =\u003e [\"+12345678900\", \"+12009876543\"],\n  \"sender\" =\u003e \"+12424242424\",\n})\n\nputs YAML.dump(result)\n=\u003e\n{\n  \"totalCreditsRemoved\": 2,\n  \"ids\": [\n    12345,\n    12346\n  ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbox-web%2Fovh-rest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjbox-web%2Fovh-rest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbox-web%2Fovh-rest/lists"}