Class: Starcall::Endpoints::ThirdPartyCodeV4
- Inherits:
-
Object
- Object
- Starcall::Endpoints::ThirdPartyCodeV4
- Defined in:
- lib/starcall/endpoints/third_party_code_v4.rb
Overview
Methods to check 3rd party codes
Class Method Summary collapse
-
.check_for_summoner(encrypted_summoner_id:, region:) ⇒ Object
Get third party code for a given summoner ID.
Class Method Details
.check_for_summoner(encrypted_summoner_id:, region:) ⇒ Object
Get third party code for a given summoner ID
11 12 13 14 15 16 17 |
# File 'lib/starcall/endpoints/third_party_code_v4.rb', line 11 def self.check_for_summoner(encrypted_summoner_id:, region:) Starcall::Regions.valid?(region: region) Starcall::ApiRequests.make_request( url: "https://#{parse_region(region: region)}.api.riotgames.com"\ "/lol/platform/v4/third-party-code/by-summoner/#{encrypted_summoner_id}" ) end |