powered by
Refer to https://developers.brandwatch.com/docs/creating-queries for more information. Unless otherwise specified, provide a single string argument.
bwr_query_create(project_id = NULL, type = "search string", languageAgnostic = FALSE, samplePercent = 100, languages = "en", includedTerms = NULL, name = NULL, description = "My API query", industry = "general", token = Sys.getenv("BW_TOKEN"))
The project ID into which you'd like to insert a query
The type of query (e.g. 'search string')
(Boolean) Is the query language agnostic?
(Numeric) The sample percent for the given query
Which languages to include
The query syntax to be included.
The name of the query
The description of the query
The industry classification
The authentication token, obtained using bwr_auth()
Returns a list containing the JSON response from the server.
# NOT RUN { bwr_query_create(project_id = 12423432, samplePercent = 50, includedTerms = 'at_mentions:mickeymouse', name = 'Sample API query') # }
Run the code above in your browser using DataLab