Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vudngo/c9abc9894c349ba8c60464bf8857a8ab to your computer and use it in GitHub Desktop.
Save vudngo/c9abc9894c349ba8c60464bf8857a8ab to your computer and use it in GitHub Desktop.
# REPLACE <ISSUE_ID>
# REPLACE <AUTH_TOKEN>
require 'uri'
require 'net/http'
url = URI("https://sentry.io/api/0/issues/<ISSUE_ID>/tags/user/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Content-Type"] = 'application/json'
request["Authorization"] = 'Bearer <AUTH_TOKEN>'
response = http.request(request)
puts response.read_body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment