We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 558a0aa commit f161ec0Copy full SHA for f161ec0
lib/esdb.rb
@@ -1,4 +1,16 @@
1
module ESDB
2
+ # Various Settings
3
+ # TODO: refactor
4
+ class << self
5
+ def api_key=(key)
6
+ @api_key = key
7
+ end
8
+
9
+ def api_key
10
+ @api_key
11
12
13
14
# Simply transforms a stats hash into a StatsParam string
15
class StatsParam
16
def initialize(stats)
lib/esdb/replay.rb
@@ -4,7 +4,7 @@ class Replay < ESDB::Resource
# successfully queued for processing.
def self.upload(file)
replay = self.new
- response = JSON.parse(RestClient.post(replay.url, :file => file))
+ response = JSON.parse(RestClient.post(replay.url, :file => file, :api_key => ESDB.api_key))
Rails.logger.info response.inspect
response['job'] ? response['job'] : false
0 commit comments