Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.65 KB

CreateApplicationAPIKey.md

File metadata and controls

25 lines (18 loc) · 1.65 KB

TalonOne::CreateApplicationAPIKey

Properties

Name Type Description Notes
title String Title of the API key.
expires DateTime The date the API key expires.
platform String The third-party platform the API key is valid for. Use `none` for a generic API key to be used from your own integration layer. [optional]
type String The API key type. Can be empty or `staging`. Staging API keys can only be used for dry requests with the Update customer session endpoint, Update customer profile endpoint, and Track event endpoint. When using the Update customer profile endpoint with a staging API key, the query parameter `runRuleEngine` must be `true`. [optional]
time_offset Integer A time offset in nanoseconds associated with the API key. When making a request using the API key, rule evaluation is based on a date that is calculated by adding the offset to the current date. [optional]

Code Sample

require 'TalonOne'

instance = TalonOne::CreateApplicationAPIKey.new(title: My generated key,
                                 expires: 2023-08-24T14:00Z,
                                 platform: none,
                                 type: staging,
                                 time_offset: 100000)