Classes
The following classes are available globally.
-
The internal client using for sending requests. Most of the exposed properties could be configured via the container
See moreTreasureData
instance. You probably need this only to tuning the retry parameters.Declaration
Objective-C
@interface TDClient
Swift
class TDClient
-
The main interface for the SDK. All initialization and configuration (except retry parameters) could be done through here.
Minimal example:
See more[TreasureData initializeWithApiKey:@"<your_write_only_api_key>"]; [[TreasureData sharedInstance] addEvent:@{@"welcome": @"Hello world"} database:@"my_db" table:@"my_ios_events"]; [[TreasureData sharedInstance] uploadEvents];
Declaration
Objective-C
@interface TreasureData : NSObject
Swift
class TreasureData : NSObject