bwr_cat_create function

Upload a new category to Brandwatch

Upload a new category to Brandwatch

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

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

Returns

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)
  • Maintainer: Donal Phipps
  • License: MIT + file LICENSE
  • Last published: 2018-08-13