bwr_cat_create {brandwatchR}R Documentation

Upload a new category to Brandwatch

Description

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

Usage

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

## 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)

[Package brandwatchR version 0.3.0 Index]