bwr_cat_create: Upload a new category to Brandwatch

Description Usage Arguments Value Examples

View source: R/categories.R

Description

Refer to https://developers.brandwatch.com/docs/creating-categories for more information. Unless otherwise specified, provide a single string argument.

Usage

1
2
bwr_cat_create(project_id = NULL, name = NULL, children = NULL,
  token = Sys.getenv("BW_TOKEN"))

Arguments

project_id

The project ID into which you'd like to insert a category

name

The name of the category

children

A list of lists (sorry!), each list defining the key-value pairs for name (mandatory) and id (optional) of each child subcategory.

token

The authentication token, obtained using bwr_auth()

Value

Returns a list containing the JSON response from the server.

Examples

1
2
3
4
5
## Not run: bwr_cat_create(project_id = 12423432,
               name = 'Quick test cat',
               children = list(list(name = 'category one', id = 234234),
                 list(name = 'category 2')))
## End(Not run)

brandwatchR documentation built on May 1, 2019, 10:24 p.m.