bwr_query_get: Get a data frame of available queries for a given project

Description Usage Arguments Value Examples

View source: R/queries.R

Description

See the Brandwatch documentation for more information at https://developers.brandwatch.com/docs/retrieving-queries.

Usage

1
2
bwr_query_get(project_id = NULL, type = NULL,
  token = Sys.getenv("BW_TOKEN"))

Arguments

project_id

The project id you'd like to return all available queries for. Obtain a data frame of projects using bwr_get_projects()

type

(Optional) The type of query you'd like to return. If not specified, the API will return all available queries for the given project. Currently, results don't seem to be affected by the type parameter - the API appears to return full results in all cases.

token

The auth token for this user, which should be generated into an environment variable using bwr_auth()

Value

Returns a dataframe of queries matching the project.

Examples

1
## Not run: my_queries <- bwr_query_get(project_id = 12334534)

Example output



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