exports

exports

PurchaseData

Constructor

# new exports(args)

Creates a PurchaseData
Parameters:
Name Type Description
args Object Purchase arguments.
Properties
Name Type Description
product_id string The SKU of the product.
product_title string The display name for the product.
product_type string The type of the product. Either "item" or "subscription"
price number The product price in the original currency.
price_currency string The purchase currency.
purchase_date string The datetime of the event in ISO 8601 format. Only needed if differs from the current date-time.
transaction_identifier string A unique transaction identifier.

exports

PollOptionContent

Constructor

# new exports(params)

Creates a PollOptionContent
Parameters:
Name Type Description
params Object Option content parameters.
Properties
Name Type Attributes Description
optionId string <optional>
Option ID
text string <optional>
Text
attachment MediaAttachment <optional>
Attachment

exports

CustomEvent

Constructor

# new exports(args)

Creates a CustomEvent
Parameters:
Name Type Description
args Object Event arguments.
Properties
Name Type Attributes Default Description
name string Event name.
customProperties Object.<string, string> <optional>
{} Event Properties.
deviceTime number <optional>
UNIX timestamp