Module: BWAPI::Client::Brandwatch::DittoBrands

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

Overview

DittoBrands module for brandwatch/dittobrands endpoint

Instance Method Summary collapse

Instance Method Details

#brandwatch_ditto_brands(opts = {}) ⇒ Hash

Get all ditto brands

Parameters:

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

    options hash of parameters

Options Hash (opts):

  • page (Integer)

    Page of results to retrieve

  • pageSize (Integer)

    Results per page of results

Returns:

  • (Hash)

    All ditto brands



12
13
14
# File 'lib/bwapi/client/brandwatch/ditto_brands.rb', line 12

def brandwatch_ditto_brands(opts = {})
  get 'brandwatch/dittobrands', opts
end

#create_brandwatch_ditto_brand(opts = {}) ⇒ Hash

Create new ditto brand

Parameters:

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

    options hash of parameters

Options Hash (opts):

  • id (Integer)

    Id of the ditto brand

  • name (String)

    Name of the ditto brand

Returns:

  • (Hash)

    New ditto brand



22
23
24
# File 'lib/bwapi/client/brandwatch/ditto_brands.rb', line 22

def create_brandwatch_ditto_brand(opts = {})
  post 'brandwatch/dittobrands', opts
end