Nothing
# This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common get_config new_operation new_request send_request
#' @include personalizeevents_service.R
NULL
#' Records user interaction event data
#'
#' @description
#' Records user interaction event data. For more information see [Recording Events](https://docs.aws.amazon.com/personalize/latest/dg/recording-events.html).
#'
#' See [https://www.paws-r-sdk.com/docs/personalizeevents_put_events/](https://www.paws-r-sdk.com/docs/personalizeevents_put_events/) for full documentation.
#'
#' @param trackingId [required] The tracking ID for the event. The ID is generated by a call to the
#' [CreateEventTracker](https://docs.aws.amazon.com/personalize/latest/dg/API_CreateEventTracker.html)
#' API.
#' @param userId The user associated with the event.
#' @param sessionId [required] The session ID associated with the user's visit. Your application
#' generates the sessionId when a user first visits your website or uses
#' your application. Amazon Personalize uses the sessionId to associate
#' events with the user before they log in. For more information, see
#' [Recording
#' Events](https://docs.aws.amazon.com/personalize/latest/dg/recording-events.html).
#' @param eventList [required] A list of event data from the session.
#'
#' @keywords internal
#'
#' @rdname personalizeevents_put_events
personalizeevents_put_events <- function(trackingId, userId = NULL, sessionId, eventList) {
op <- new_operation(
name = "PutEvents",
http_method = "POST",
http_path = "/events",
paginator = list()
)
input <- .personalizeevents$put_events_input(trackingId = trackingId, userId = userId, sessionId = sessionId, eventList = eventList)
output <- .personalizeevents$put_events_output()
config <- get_config()
svc <- .personalizeevents$service(config)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.personalizeevents$operations$put_events <- personalizeevents_put_events
#' Adds one or more items to an Items dataset
#'
#' @description
#' Adds one or more items to an Items dataset. For more information see [Importing Items Incrementally](https://docs.aws.amazon.com/personalize/latest/dg/importing-items.html).
#'
#' See [https://www.paws-r-sdk.com/docs/personalizeevents_put_items/](https://www.paws-r-sdk.com/docs/personalizeevents_put_items/) for full documentation.
#'
#' @param datasetArn [required] The Amazon Resource Name (ARN) of the Items dataset you are adding the
#' item or items to.
#' @param items [required] A list of item data.
#'
#' @keywords internal
#'
#' @rdname personalizeevents_put_items
personalizeevents_put_items <- function(datasetArn, items) {
op <- new_operation(
name = "PutItems",
http_method = "POST",
http_path = "/items",
paginator = list()
)
input <- .personalizeevents$put_items_input(datasetArn = datasetArn, items = items)
output <- .personalizeevents$put_items_output()
config <- get_config()
svc <- .personalizeevents$service(config)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.personalizeevents$operations$put_items <- personalizeevents_put_items
#' Adds one or more users to a Users dataset
#'
#' @description
#' Adds one or more users to a Users dataset. For more information see [Importing Users Incrementally](https://docs.aws.amazon.com/personalize/latest/dg/importing-users.html).
#'
#' See [https://www.paws-r-sdk.com/docs/personalizeevents_put_users/](https://www.paws-r-sdk.com/docs/personalizeevents_put_users/) for full documentation.
#'
#' @param datasetArn [required] The Amazon Resource Name (ARN) of the Users dataset you are adding the
#' user or users to.
#' @param users [required] A list of user data.
#'
#' @keywords internal
#'
#' @rdname personalizeevents_put_users
personalizeevents_put_users <- function(datasetArn, users) {
op <- new_operation(
name = "PutUsers",
http_method = "POST",
http_path = "/users",
paginator = list()
)
input <- .personalizeevents$put_users_input(datasetArn = datasetArn, users = users)
output <- .personalizeevents$put_users_output()
config <- get_config()
svc <- .personalizeevents$service(config)
request <- new_request(svc, op, input, output)
response <- send_request(request)
return(response)
}
.personalizeevents$operations$put_users <- personalizeevents_put_users
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.