Module: BWAPI::Client::Brandwatch::UsageReport

Included in:
BWAPI::Client::Brandwatch
Defined in:
lib/bwapi/client/brandwatch/usage_report.rb

Overview

usageReport module for brandwatch/usageReport endpoint

Instance Method Summary collapse

Instance Method Details

#brandwatch_usage_report(client_id, start_date, end_date, opts = {}) ⇒ Hash

Get the Clients Mention Usage report

Parameters:

  • client_id (Integer) —

    Id of client

  • start_date (DateTime) —

    Report startDate

  • end_date (DateTime) —

    Report endDate

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

    options hash of parameters

Returns:

  • (Hash) —

    Returns usage report for active client



13
14
15
# File 'lib/bwapi/client/brandwatch/usage_report.rb', line 13

def brandwatch_usage_report(client_id, start_date, end_date, opts = {})
  get "brandwatch/usageReport/client/#{client_id}/start/#{start_date}/end/#{end_date}", opts
end