{"id":13994307,"url":"https://github.com/thierryxing/sentry-ruby-api","last_synced_at":"2025-05-06T23:19:02.937Z","repository":{"id":56894958,"uuid":"66704944","full_name":"thierryxing/sentry-ruby-api","owner":"thierryxing","description":"Ruby wrapper for getsentry/Sentry REST API","archived":false,"fork":false,"pushed_at":"2023-06-24T13:31:36.000Z","size":92,"stargazers_count":19,"open_issues_count":0,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-27T18:42:00.758Z","etag":null,"topics":["getsentry","ruby-wrapper","sentry"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thierryxing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-08-27T08:43:25.000Z","updated_at":"2023-06-24T13:31:41.000Z","dependencies_parsed_at":"2024-01-18T04:51:51.118Z","dependency_job_id":"9b44c35b-55be-42d7-a66f-c398b4b1ba6a","html_url":"https://github.com/thierryxing/sentry-ruby-api","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thierryxing%2Fsentry-ruby-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thierryxing%2Fsentry-ruby-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thierryxing%2Fsentry-ruby-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thierryxing%2Fsentry-ruby-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thierryxing","download_url":"https://codeload.github.com/thierryxing/sentry-ruby-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252782958,"owners_count":21803427,"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":["getsentry","ruby-wrapper","sentry"],"created_at":"2024-08-09T14:02:48.854Z","updated_at":"2025-05-06T23:19:02.917Z","avatar_url":"https://github.com/thierryxing.png","language":"Ruby","readme":"# Sentry Ruby API\n[![Build Status](https://travis-ci.org/thierryxing/sentry-ruby-api.svg?branch=master)](https://travis-ci.org/thierryxing/sentry-ruby-api)\n[![Gem Version](https://badge.fury.io/rb/sentry-api.svg)](https://badge.fury.io/rb/sentry-api)\n[![License](https://img.shields.io/badge/license-BSD-red.svg?style=flat)](https://github.com/thierryxing/sentry-ruby-api/blob/master/LICENSE.txt)\n\nSentry Ruby API is a Ruby wrapper for the [getsentry/sentry API](https://docs.sentry.io/hosted/api/). \n\n\n## Installation\nInstall it from rubygems:\n\n```sh\ngem install sentry-api\n```\n\nOr add to a Gemfile:\n\n```ruby\ngem 'sentry-api'\n```\n\n## Usage\n\nConfiguration example:\n\n```ruby\nSentryApi.configure do |config|\n  config.endpoint = 'http://example.com/api/0'\n  config.auth_token = 'your_auth_token'\n  config.default_org_slug = 'sentry-sc'\nend\n```\n\n(Note: If you are using getsentry.com's hosted service, your endpoint will be `https://sentry.io/api/0/`)\n\nUsage examples:\n\n```ruby\n# set an API endpoint\nSentryApi.endpoint = 'http://example.com/api/0'\n# =\u003e \"http://example.com/api/0\"\n\n# set a user private token\nSentryApi.auth_token = 'your_auth_token'\n# =\u003e \"your_auth_token\"\n\n# configure a proxy server\nSentryApi.http_proxy('proxyhost', 8888)\n# proxy server w/ basic auth\nSentryApi.http_proxy('proxyhost', 8888, 'user', 'pass')\n\n# list projects\nSentryApi.projects\n\n# initialize a new client\ns = SentryApi.client(endpoint: 'https://api.example.com', auth_token: 'your_auth_token', default_org_slug: 'sentry-sc')\n\n# a paginated response\nprojects = SentryApi.projects\n\n# check existence of the next page\nprojects.has_next_page?\n\n# retrieve the next page\nprojects.next_page\n\n# iterate all projects\nprojects.auto_paginate do |project|\n  # do something\nend\n\n# retrieve all projects as an array\nprojects.auto_paginate\n```\n\n## Development\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run\n`rake spec` to run the tests. You can also run `bin/console` for an interactive\nprompt that will allow you to experiment.\n\n## License\n\nReleased under the BSD 2-clause license. See LICENSE.txt for details.\n\n## Special Thank\nThanks to NARKOZ's [gitlab](https://github.com/NARKOZ/gitlab) ruby wrapper which really gives me a lot of inspiration.\n","funding_links":[],"categories":["Ruby"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthierryxing%2Fsentry-ruby-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthierryxing%2Fsentry-ruby-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthierryxing%2Fsentry-ruby-api/lists"}