Sha256: 5b5cc361dac0eb909924b8ec12903b37161f24b85b6f37a76b85e25514604019
Contents?: true
Size: 395 Bytes
Versions: 4
Compression:
Stored size: 395 Bytes
Contents
# frozen_string_literal: true require 'httparty' module Starcall # A small class to make a HTTP get request using the passed in URL # Intened to only be used my internal Gem classes and not be called directly. class ApiRequests def self.make_request(url:) HTTParty.get(url, { headers: { 'X-Riot-Token' => ENV['RIOT_API_KEY'] } }).parsed_response end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
starcall-0.6.0 | lib/starcall/api_requests.rb |
starcall-0.5.0 | lib/starcall/api_requests.rb |
starcall-0.4.0 | lib/starcall/api_requests.rb |
starcall-0.3.0 | lib/starcall/api_requests.rb |