bwr_query_create {brandwatchR} | R Documentation |
Upload a new query to Brandwatch
Description
Refer to https://developers.brandwatch.com/docs/creating-queries for more information. Unless otherwise specified, provide a single string argument.
Usage
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"))
Arguments
project_id |
The project ID into which you'd like to insert a query |
type |
The type of query (e.g. 'search string') |
languageAgnostic |
(Boolean) Is the query language agnostic? |
samplePercent |
(Numeric) The sample percent for the given query |
languages |
Which languages to include |
includedTerms |
The query syntax to be included. |
name |
The name of the query |
description |
The description of the query |
industry |
The industry classification |
token |
The authentication token, obtained using bwr_auth() |
Value
Returns a list containing the JSON response from the server.
Examples
## Not run: bwr_query_create(project_id = 12423432,
samplePercent = 50,
includedTerms = 'at_mentions:mickeymouse',
name = 'Sample API query')
## End(Not run)
[Package brandwatchR version 0.3.0 Index]