{"id":20540426,"url":"https://github.com/josephbuchma/postman-ruby","last_synced_at":"2025-10-23T21:34:02.529Z","repository":{"id":56888579,"uuid":"88745456","full_name":"josephbuchma/postman-ruby","owner":"josephbuchma","description":"Parse \u0026 make http requests from Postman's (getpostman.com) exported collections (Collection V2)","archived":false,"fork":false,"pushed_at":"2017-04-21T15:35:53.000Z","size":5,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-23T04:44:31.272Z","etag":null,"topics":["gem","postman","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/josephbuchma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-19T12:58:15.000Z","updated_at":"2021-04-06T10:29:48.000Z","dependencies_parsed_at":"2022-08-20T23:40:47.355Z","dependency_job_id":null,"html_url":"https://github.com/josephbuchma/postman-ruby","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/josephbuchma/postman-ruby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josephbuchma%2Fpostman-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josephbuchma%2Fpostman-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josephbuchma%2Fpostman-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josephbuchma%2Fpostman-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/josephbuchma","download_url":"https://codeload.github.com/josephbuchma/postman-ruby/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josephbuchma%2Fpostman-ruby/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278879597,"owners_count":26061918,"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-10-08T02:00:06.501Z","response_time":56,"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":["gem","postman","ruby"],"created_at":"2024-11-16T01:15:17.309Z","updated_at":"2025-10-09T04:32:55.979Z","avatar_url":"https://github.com/josephbuchma.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Postman-Ruby\n\nPlay with [Postman's](https://www.getpostman.com/) request collections using Ruby.\n\n## Install\n\n```\ngem install postman-ruby\n```\n\n## Usage\n\n1. Export collection from Postman to JSON file (Collection V2)\n2. Example code:\n\n```ruby\nrequire 'postman-ruby'\n\n# Parse exported collection JSON\np = Postman.parse_file('exported_requests_collection.json')\n\n# Set some environment variables if needed\np.set_env('host' =\u003e 'http://localhost:9090', 'access_token' =\u003e 'x5CACj1cmrRLtt7EgIBxblYrfcrJVbQL820QJ1kNY')\n\n# Filter by hash\nfiltered = p.filter('method' =\u003e 'get', 'name'=\u003e/.*(search|find).*/i)\n\n# Filter with block\nfiltered = p.filter do |r|\n  r.method == :get \u0026\u0026 r.name.include?('search') \u0026\u0026 r.url.raw.include?('foobar')\nend\n\n# Make some requests\nfiltered.each do |r|\n  resp = r.execute # =\u003e RestClient::Response\n\n  # ...\nend\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosephbuchma%2Fpostman-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosephbuchma%2Fpostman-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosephbuchma%2Fpostman-ruby/lists"}