Module: BWAPI::Client::Projects::Data
- Included in:
- BWAPI::Client::Projects
- Defined in:
- lib/bwapi/client/projects/data.rb
Overview
Data module for project/data endpoints
Instance Method Summary collapse
-
#data(id, aggregate, dimension_one, dimension_two, opts = {}) ⇒ Hashie::Mash
Get all chart data for the requested dimensions.
-
#data_date_ranges_days(id, opts) ⇒ Hashie::Mash
Get all chart data for date ranges broken down by days.
-
#data_mentions(id, opts = {}) ⇒ Hashie::Mash
Get mentions that fall within the submitted filters.
-
#update_data_mentions(id, opts = {}) ⇒ Hashie::Mash
Update mentions for project.
Instance Method Details
#data(id, aggregate, dimension_one, dimension_two, opts = {}) ⇒ Hashie::Mash
Get all chart data for the requested dimensions
17 18 19 |
# File 'lib/bwapi/client/projects/data.rb', line 17 def data id, aggregate, dimension_one, dimension_two, opts={} get "projects/#{id}/data/#{aggregate}/#{dimension_one}/#{dimension_two}", opts end |
#data_date_ranges_days(id, opts) ⇒ Hashie::Mash
Get all chart data for date ranges broken down by days
29 30 31 |
# File 'lib/bwapi/client/projects/data.rb', line 29 def data_date_ranges_days id, opts get "projects/#{id}/data/volume/dataRanges/days", opts end |
#data_mentions(id, opts = {}) ⇒ Hashie::Mash
Get mentions that fall within the submitted filters
45 46 47 |
# File 'lib/bwapi/client/projects/data.rb', line 45 def data_mentions id, opts={} get "projects/#{id}/data/mentions", opts end |
#update_data_mentions(id, opts = {}) ⇒ Hashie::Mash
Update mentions for project
56 57 58 |
# File 'lib/bwapi/client/projects/data.rb', line 56 def update_data_mentions id, opts={} patch "projects/#{id}/data/mentions", opts end |