fortniteapi 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fortniteapi/api.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95d4ea682d6bc5a5ff7ea20199d1673ab345d4963dafd51a97d9493a41fdf2dd
|
4
|
+
data.tar.gz: 0baa96aa1ad2be13693afd532a6543046971dbc364c5b283ccf1117d4fb2ace6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48cbe7422262184aa5567c331db116e483cbcd825c42efdcc5611f5b0e704e3d1e8668eb7cdac65636c6f6a6a61677cf7cbb00bf5db666a02c4c48864d28a5b4
|
7
|
+
data.tar.gz: 1ee4c625d434e0e04f301ed7f2fc74d4dcb56d6b6735fb0598e37ad028ad5587e16482a6404e0df0a47cd0e42fb6968ffbd5de7d94cb66132e127e6428b872ba
|
data/lib/fortniteapi/api.rb
CHANGED
@@ -12,8 +12,9 @@ class FortniteAPI
|
|
12
12
|
@apikey = apikey
|
13
13
|
@headers = {"x-api-key" => @apikey}
|
14
14
|
|
15
|
-
if @apikey == nil
|
15
|
+
if @apikey == nil
|
16
16
|
warn('FortniteAPI.apikey.warn: Next monday (Dec. 9th) at 8 PM (UTC) every endpoint will require an API-Key, you can get one at: fortnite-api.com.')
|
17
|
+
end
|
17
18
|
end
|
18
19
|
|
19
20
|
def search_cosmetic(searchQuery, tag='name', language='en', searchLanguage='en')
|