-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
my code, change to a real app id and use valid credentials, the rest of methods are working just fine
spec = Gem::Specification.find_by_path('fabricio')
spec.activate
gem_original_require 'fabricio'
client = Fabricio::Client.new do |config|
config.username = 'javi@*********.com'
config.password = '*********'
end
date_ini = Time.new(2017,12,01)
date_end = Time.new(2018,01,01)
builds = [
"1.7.6 (114)"
]
app_id = '5677c7ae1b5c0932*******'
result = client.app.send("daily_active", *[app_id, date_ini.to_i, date_end.to_i, builds]);
print result
exit
Output:
➜ ruby ruby test.rb
/var/lib/gems/2.3.0/gems/fabricio-1.3.0/lib/fabricio/models/point.rb:12:in `initialize': uninitialized constant Fabricio::Model::Point::DateTime (NameError)
from /var/lib/gems/2.3.0/gems/fabricio-1.3.0/lib/fabricio/services/app_service.rb:81:in `new'
from /var/lib/gems/2.3.0/gems/fabricio-1.3.0/lib/fabricio/services/app_service.rb:81:in `block in daily_active'
from /var/lib/gems/2.3.0/gems/fabricio-1.3.0/lib/fabricio/services/app_service.rb:80:in `map'
from /var/lib/gems/2.3.0/gems/fabricio-1.3.0/lib/fabricio/services/app_service.rb:80:in `daily_active'
from test_active.rb:19:in `<main>'
Metadata
Metadata
Assignees
Labels
No labels