create_compliance_job: Create Compliance Job

View source: R/compliance.R

create_compliance_jobR Documentation

Create Compliance Job

Description

This function creates a new compliance job and upload the Tweet IDs or user IDs. By default, the parameter x with the length of one is assumed to be a text file containing either Tweet IDs or user IDs. This default behavior can be bypassed using force_ids For example, if you want to check for just a single Tweet ID.

Usage

create_compliance_job(
  x,
  type = "tweets",
  bearer_token = get_bearer(),
  force_ids = FALSE,
  verbose = TRUE
)

Arguments

x

either a character vector of Tweet IDs or user IDs; or a plain text file that each line contains a Tweet ID or user ID.

type

the type of the job, whether "tweets" or "users".

bearer_token

string, bearer token

force_ids

logical, make sure x is treated as a character vector of Tweet IDs or user IDs.

verbose

If FALSE, query progress messages are suppressed

Value

the job ID (invisibly)

Examples

## Not run: 
create_compliance_job(x = "tweetids.txt", type = "tweets")

## End(Not run)

cjbarrie/academictwitteR documentation built on Nov. 20, 2024, 11:52 a.m.