{"id":22056938,"url":"https://github.com/danteay/easy-ruby-request","last_synced_at":"2025-03-23T16:22:07.063Z","repository":{"id":47533552,"uuid":"84353020","full_name":"danteay/easy-ruby-request","owner":"danteay","description":"Make easy request in ruby apps","archived":false,"fork":false,"pushed_at":"2021-08-25T02:35:28.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T05:58:03.465Z","etag":null,"topics":["http","json","request","ruby"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danteay.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":"2017-03-08T18:27:16.000Z","updated_at":"2021-08-25T02:35:31.000Z","dependencies_parsed_at":"2022-09-23T12:43:20.927Z","dependency_job_id":null,"html_url":"https://github.com/danteay/easy-ruby-request","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danteay%2Feasy-ruby-request","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danteay%2Feasy-ruby-request/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danteay%2Feasy-ruby-request/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danteay%2Feasy-ruby-request/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danteay","download_url":"https://codeload.github.com/danteay/easy-ruby-request/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245128766,"owners_count":20565333,"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":["http","json","request","ruby"],"created_at":"2024-11-30T16:15:14.288Z","updated_at":"2025-03-23T16:22:07.030Z","avatar_url":"https://github.com/danteay.png","language":"Ruby","readme":"# easy-ruby-request\nMake easy request in ruby apps\n\n## GET Request - All params example\n```ruby\nrequire 'easy_request'\n\nurl = 'https://api.mysite.com/some/endpoint'\n\nheaders = {\n  'cache-control' =\u003e 'no-cache'\n  'Content-Type' =\u003e 'application/x-www-form-urlencoded'\n}\n\nbasic_auth = {\n  user: 'myuser',\n  pass: 'mypass'\n}\n\nresponse = EasyRequest.get(url, basic_auth, headers)\n\nputs response\n```\n\n## GET Request - Basic example\n```ruby\nrequire 'easy_request'\n\nurl = 'https://api.mysite.com/some/endpoint'\n\nresponse = EasyRequest.get(url)\n\nputs response\n```\n\n## POST Request - All params example\n```ruby\nrequire 'easy_request'\n\nurl = 'https://api.mysite.com/some/endpoint'\n\ndata = {\n  some: 'json',\n  id: 123,\n  name: 'John'\n}\n\nheaders = {\n  'cache-control' =\u003e 'no-cache'\n  'Content-Type' =\u003e 'application/json'\n}\n\nbasic_auth = {\n  user: 'myuser',\n  pass: 'mypass'\n}\n\nresponse = EasyRequest.post(url, data, basic_auth, headers)\n\nputs response\n```\n\n## POST Request - Basic example\n```ruby\nrequire 'easy_request'\n\nurl = 'https://api.mysite.com/some/endpoint'\n\nresponse = EasyRequest.post(url)\n\nputs response\n```\n\n## PUT Request - All params example\n```ruby\nrequire 'easy_request'\n\nurl = 'https://api.mysite.com/some/endpoint'\n\ndata = {\n  some: 'json',\n  id: 123,\n  name: 'John'\n}\n\nheaders = {\n  'cache-control' =\u003e 'no-cache'\n  'Content-Type' =\u003e 'application/json'\n}\n\nbasic_auth = {\n  user: 'myuser',\n  pass: 'mypass'\n}\n\nresponse = EasyRequest.put(url, data, basic_auth, headers)\n\nputs response\n```\n\n## PUT Request - Basic example\n```ruby\nrequire 'easy_request'\n\nurl = 'https://api.mysite.com/some/endpoint'\n\nresponse = EasyRequest.put(url)\n\nputs response\n```\n## DELETE Request - All params example\n```ruby\nrequire 'easy_request'\n\nurl = 'https://api.mysite.com/some/endpoint'\n\ndata = {\n  some: 'json',\n  id: 123,\n  name: 'John'\n}\n\nheaders = {\n  'cache-control' =\u003e 'no-cache'\n  'Content-Type' =\u003e 'application/json'\n}\n\nbasic_auth = {\n  user: 'myuser',\n  pass: 'mypass'\n}\n\nresponse = EasyRequest.delete(url, data, basic_auth, headers)\n\nputs response\n```\n## DELETE Request - Basic example\n```ruby\nrequire 'easy_request'\n\nurl = 'https://api.mysite.com/some/endpoint'\n\nresponse = EasyRequest.post(url, data, basic_auth, headers)\n\nputs response\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanteay%2Feasy-ruby-request","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanteay%2Feasy-ruby-request","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanteay%2Feasy-ruby-request/lists"}