See Readme for details.
Create Bridging Header and add SatisMeter import to it.
#import <SatisMeter/SatisMeter.h>
In your app delegate inside didFinishLaunchingWithOptions type this:
let traitsDictionary = [
"name" : "James Bond",
"plan" : "Gold",
"createdAt" : "2015-11-01T00:00:00.000Z"
]
SatisMeter.sharedInstance().identifyUser(withUserId: "007", writeKey: "K7eMIPEXyPMlG7fu", andTraitsDictionary: traitsDictionary)
Replace the writeKey
with the one found in SatisMeter settings / Integrations / API Keys.
Replace user id
, name
, etc. with the ones of the currently logged-in user.