module BWAPI::Client::Projects::Data
Data
module for projects/data endpoints
Public Instance Methods
data(project_id, aggregate, dimension_one, dimension_two, opts = {})
click to toggle source
Get all chart data for the requested dimensions
@param project_id [Integer] Id of project @param aggregate [String] Aggregate value @param dimension_one [String] Dimension 1 value @param dimension_two [String] Dimension 2 value @param opts [Hash] options hash of parameters @option opts [Hash] filter The filters to apply @return [Hash] All Chart data mentions
# File lib/bwapi/client/projects/data.rb, line 28 def data(project_id, aggregate, dimension_one, dimension_two, opts = {}) get "projects/#{project_id}/data/#{aggregate}/#{dimension_one}/#{dimension_two}", opts end
data_headlines(project_id, opts = {})
click to toggle source
Get headline figures for specified channels
@param project_id [Integer] Id of project @param opts [Hash] options hash of parameters @option opts [Hash] filter The filters to apply @return [Hash] Headline figures for spedified channels
# File lib/bwapi/client/projects/data.rb, line 38 def data_headlines(project_id, opts = {}) get "projects/#{project_id}/data/headlines", opts end