{"id":30793999,"url":"https://github.com/sendgrid/ruby-http-client","last_synced_at":"2025-09-05T16:26:33.718Z","repository":{"id":5885483,"uuid":"53675470","full_name":"sendgrid/ruby-http-client","owner":"sendgrid","description":"SendGrid's Ruby HTTP Client for calling APIs","archived":false,"fork":false,"pushed_at":"2024-07-16T19:16:08.000Z","size":340,"stargazers_count":22,"open_issues_count":6,"forks_count":56,"subscribers_count":120,"default_branch":"main","last_synced_at":"2025-08-09T21:08:45.465Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://sendgrid.com","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/sendgrid.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2016-03-11T15:13:04.000Z","updated_at":"2024-12-17T08:02:07.000Z","dependencies_parsed_at":"2024-06-18T18:28:41.400Z","dependency_job_id":"b4f73ee3-cbc9-47d0-b51b-b96dee6516ae","html_url":"https://github.com/sendgrid/ruby-http-client","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/sendgrid/ruby-http-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sendgrid%2Fruby-http-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sendgrid%2Fruby-http-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sendgrid%2Fruby-http-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sendgrid%2Fruby-http-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sendgrid","download_url":"https://codeload.github.com/sendgrid/ruby-http-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sendgrid%2Fruby-http-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273782731,"owners_count":25167205,"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","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-09-05T16:26:29.687Z","updated_at":"2025-09-05T16:26:33.707Z","avatar_url":"https://github.com/sendgrid.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"![SendGrid Logo](twilio_sendgrid_logo.png)\n\n[![BuildStatus](https://github.com/sendgrid/ruby-http-client/actions/workflows/test-and-deploy.yml/badge.svg)](https://github.com/sendgrid/ruby-http-client/actions/workflows/test-and-deploy.yml)\n[![Gem Version](https://badge.fury.io/rb/ruby_http_client.svg)](https://badge.fury.io/rb/ruby_http_client)\n[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n[![Twitter Follow](https://img.shields.io/twitter/follow/sendgrid.svg?style=social\u0026label=Follow)](https://twitter.com/sendgrid)\n[![GitHub contributors](https://img.shields.io/github/contributors/sendgrid/ruby-http-client.svg)](https://github.com/sendgrid/ruby-http-client/graphs/contributors)\n\n**Quickly and easily access any RESTful or RESTful-like API.**\n\nIf you are looking for the SendGrid API client library, please see [this repo](https://github.com/sendgrid/sendgrid-ruby).\n\n# Announcements\nAll updates to this library are documented in our [CHANGELOG](CHANGELOG.md).\n\n# Table of Contents\n- [Installation](#installation)\n- [Quick Start](#quick-start)\n- [Usage](#usage)\n- [How to Contribute](#contribute)\n- [About](#about)\n- [Support](#support)\n- [License](#license)\n\n\u003ca name=\"installation\"\u003e\u003c/a\u003e\n# Installation\n\n## Prerequisites\n\n- Ruby version \u003e= 2.4\n\n## Setup Environment Variables\n\n### Environment Variable\n\nUpdate the development environment with your [SENDGRID_API_KEY](https://app.sendgrid.com/settings/api_keys), for example:\n\n```bash\necho \"export SENDGRID_API_KEY='YOUR_API_KEY'\" \u003e sendgrid.env\necho \"sendgrid.env\" \u003e\u003e .gitignore\nsource ./sendgrid.env\n```\n\n## Install Package\n\n```bash\ngem install ruby_http_client\n```\n\n\u003ca name=\"quick-start\"\u003e\u003c/a\u003e\n# Quick Start\n\n`GET /your/api/{param}/call`\n\n```ruby\nrequire 'ruby_http_client'\nglobal_headers = {'Authorization' =\u003e 'Bearer XXXXXXX' }\nclient = SendGrid::Client.new(host: 'base_url', request_headers: global_headers)\nclient.your.api._(param).call.get\nputs response.status_code\nputs response.body\nputs response.headers\n```\n\n`POST /your/api/{param}/call` with headers, query parameters and a request body with versioning.\n\n```ruby\nrequire 'ruby_http_client'\nglobal_headers = {'Authorization' =\u003e 'Bearer XXXXXXX' }\nclient = SendGrid::Client.new(host: 'base_url', request_headers: global_headers)\nquery_params = { 'hello' =\u003e 0, 'world' =\u003e 1 }\nrequest_headers = { 'X-Test' =\u003e 'test' }\ndata = { 'some' =\u003e 1, 'awesome' =\u003e 2, 'data' =\u003e 3}\nresponse = client.your.api._(param).call.post(request_body: data,\n                                              query_params: query_params,\n                                              request_headers: request_headers)\nputs response.status_code\nputs response.body\nputs response.headers\n```\n\n\u003ca name=\"usage\"\u003e\u003c/a\u003e\n# Usage\n\n- [Example Code](examples)\n\n\u003ca name=\"contribute\"\u003e\u003c/a\u003e\n# How to Contribute\n\nWe encourage contribution to our libraries, please see our [CONTRIBUTING](CONTRIBUTING.md) guide for details.\n\nQuick links:\n\n- [Improvements to the Codebase](CONTRIBUTING.md#improvements-to-the-codebase)\n- [Review Pull Requests](CONTRIBUTING.md#code-reviews)\n\n\u003ca name=\"about\"\u003e\u003c/a\u003e\n# About\n\nruby-http-client is maintained and funded by Twilio SendGrid, Inc. The names and logos for ruby-http-client are trademarks of Twilio SendGrid, Inc.\n\n\u003ca name=\"support\"\u003e\u003c/a\u003e\n# Support\n\nIf you need help using SendGrid, please check the [Twilio SendGrid Support Help Center](https://support.sendgrid.com).\n\n# License\n[The MIT License (MIT)](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsendgrid%2Fruby-http-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsendgrid%2Fruby-http-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsendgrid%2Fruby-http-client/lists"}