get_categories_and_events: Get All Categories and Events for a List of Product Ids

Description Usage Arguments Details Value Examples

View source: R/get_categories_and_events.R

Description

Returns all of the unique categories and events (basic and advanced) for each product id.

Usage

1
get_categories_and_events(rev_product_ids, rev_session_id, rev_username)

Arguments

rev_product_ids

A vector of revulytics product id's for which you want active user data.

rev_session_id

Session ID established by the connection to Revulytics API. This can be obtained with revulytics_auth().

rev_username

Revulytics username.

Details

It is not recommended that your username be stored directly in your code. There are various methods and packages available that are more secure; this package does not require you to use any one in particular.

Value

Data frame with categories, events and event type by product id.

Examples

1
2
3
4
5
6
7
8
## Not run: 
rev_user <- "my_username"
rev_pwd <- "super_secret"
product_ids_list <- c("123", "456", "789")
session_id <- revulytics_auth(rev_user, rev_pwd)  
category_event <- get_categories_and_events(product_ids_list, session_id, rev_user)

## End(Not run)

revulyticsR documentation built on Dec. 5, 2020, 1:06 a.m.