fortniteapi 0.0.5 → 0.0.7
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 +3 -0
- 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: 62a6991c2fda2616a8d6e5a9c8388e3379799a9c757b03d7473573b3b9bb8714
|
4
|
+
data.tar.gz: 571e3a0030fa7e5ee5816d19ace61b33b48f844342112264064783ed05dceea1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86c226d70a95af3371bf6f6786f27e5266098d3bcaa6c937e2c47744c4523c4b9fb28bef48f00164ce933eb985deb865c8e5903aded19a63233c7d2ef33a52b3
|
7
|
+
data.tar.gz: 8ddfab84bf0eb5310c3a534836440c90524ac7f6559773ba3afc5e7130735508eb6686ca9631de6d3489aaa473bb154a0d05e2f505311a111f42131ffd1202f1
|
data/lib/fortniteapi/api.rb
CHANGED
@@ -11,6 +11,9 @@ class FortniteAPI
|
|
11
11
|
def initialize(apikey=nil)
|
12
12
|
@apikey = apikey
|
13
13
|
@headers = {"x-api-key" => @apikey}
|
14
|
+
|
15
|
+
if @apikey == nil:
|
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.')
|
14
17
|
end
|
15
18
|
|
16
19
|
def search_cosmetic(searchQuery, tag='name', language='en', searchLanguage='en')
|