Module: BWAPI::Client::Projects::Data::Volume

Included in:
BWAPI::Client::Projects::Data
Defined in:
lib/bwapi/client/projects/data/volume.rb

Overview

Volume module for projects/data/volume endpoints

Instance Method Summary collapse

Instance Method Details

#data_volume_date_ranges_days(project_id, opts = {}) ⇒ Hash

Get all chart data for date ranges broken down by days

Parameters:

  • project_id (Integer)

    Id of project

  • opts (Hash) (defaults to: {})

    options hash of parameters

Options Hash (opts):

  • filter (Hash)

    The filters to apply

  • dateRanges (Array)

    Date range ids

Returns:

  • (Hash)

    All Chart data mentions



14
15
16
# File 'lib/bwapi/client/projects/data/volume.rb', line 14

def data_volume_date_ranges_days(project_id, opts = {})
  get "projects/#{project_id}/data/volume/dataRanges/days", opts
end

#data_volume_queries_top_sites(project_id, opts = {}) ⇒ Object

Get a sub (top 10, by volume) items of the sites dimension

Parameters:

  • project_id (Integer)

    Id of project

  • opts (Hash) (defaults to: {})

    a customizable set of options

Options Hash (opts):

  • filter (Hash)

    The filters to apply



22
23
24
# File 'lib/bwapi/client/projects/data/volume.rb', line 22

def data_volume_queries_top_sites(project_id, opts = {})
  get "projects/#{project_id}/data/volume/queries/topsites", opts
end

#data_volume_top_authors_queries(project_id, opts = {}) ⇒ Object

Get top authors for given query IDs

Parameters:

  • project_id (Integer)

    Id of project

  • opts (Hash) (defaults to: {})

    a customizable set of options

Options Hash (opts):

  • filter (Hash)

    The filters to apply

  • limit (Integer)

    The limit to return

  • orderBy (String)

    Parameter to sort by

  • orderDirection (String)

    Direction of sort



59
60
61
# File 'lib/bwapi/client/projects/data/volume.rb', line 59

def data_volume_top_authors_queries(project_id, opts = {})
  get "projects/#{project_id}/data/volume/topauthors/queries", opts
end

#data_volume_top_authors_queries_alt(project_id, opts = {}) ⇒ Object

Get top authors for given query IDs alternative

Parameters:

  • project_id (Integer)

    Id of project

  • opts (Hash) (defaults to: {})

    a customizable set of options

Options Hash (opts):

  • filter (Hash)

    The filters to apply

  • limit (Integer)

    The limit to return

  • orderBy (String)

    Parameter to sort by

  • orderDirection (String)

    Direction of sort



70
71
72
# File 'lib/bwapi/client/projects/data/volume.rb', line 70

def data_volume_top_authors_queries_alt(project_id, opts = {})
  get "projects/#{project_id}/data/volume/topauthors/queries/alt", opts
end

#data_volume_top_sites_queries(project_id, opts = {}) ⇒ Object

Get top sites for given query IDs

Parameters:

  • project_id (Integer)

    Id of project

  • opts (Hash) (defaults to: {})

    a customizable set of options

Options Hash (opts):

  • filter (Hash)

    The filters to apply

  • limit (Integer)

    The limit to return

  • orderBy (String)

    Parameter to sort by

  • orderDirection (String)

    Direction of sort



81
82
83
# File 'lib/bwapi/client/projects/data/volume.rb', line 81

def data_volume_top_sites_queries(project_id, opts = {})
  get "projects/#{project_id}/data/volume/topsites/queries", opts
end

#data_volume_top_tweeters_queries(project_id, opts = {}) ⇒ Object

Get top tweeters for given query IDs

Parameters:

  • project_id (Integer)

    Id of project

  • opts (Hash) (defaults to: {})

    a customizable set of options

Options Hash (opts):

  • filter (Hash)

    The filters to apply

  • limit (Integer)

    The limit to return

  • orderBy (String)

    Parameter to sort by

  • orderDirection (String)

    Direction of sort



92
93
94
# File 'lib/bwapi/client/projects/data/volume.rb', line 92

def data_volume_top_tweeters_queries(project_id, opts = {})
  get "projects/#{project_id}/data/volume/toptweeters/queries", opts
end

#data_volume_topics_compare(project_id, criteria, opts = {}) ⇒ Object

Get a list of topics compared by criteria using two different values for that criteria

Parameters:

  • project_id (Integer)

    Id of project

  • criteria (String)

    The comparison criteria

  • opts (Hash) (defaults to: {})

    a customizable set of options

Options Hash (opts):

  • criteriaValue1 (String)

    Value one for criteria

  • criteriaValue2 (String)

    Value one for criteria

  • filter (Hash)

    The filters to apply

  • minDifference (Float)

    The minimum criteria difference for a topic to be returned

  • minVolume (Integer)

    The minimum volume (number of mentions) for a topic to be returned

  • limit (Integer)

    The limit to return

  • sampleSize (Integer)

    The sample size



37
38
39
# File 'lib/bwapi/client/projects/data/volume.rb', line 37

def data_volume_topics_compare(project_id, criteria, opts = {})
  get "projects/#{project_id}/data/volume/topics/compare/#{criteria}", opts
end

#data_volume_topics_queries(project_id, opts = {}) ⇒ Object

Get top topics for given query IDs

Parameters:

  • project_id (Integer)

    Id of project

  • opts (Hash) (defaults to: {})

    a customizable set of options

Options Hash (opts):

  • filter (Hash)

    The filters to apply

  • limit (Integer)

    The limit to return

  • orderBy (String)

    Parameter to sort by

  • orderDirection (String)

    Direction of sort



48
49
50
# File 'lib/bwapi/client/projects/data/volume.rb', line 48

def data_volume_topics_queries(project_id, opts = {})
  get "projects/#{project_id}/data/volume/topics/queries", opts
end