/satismeter-ios

SatisMeter iOS SDK

Primary LanguageShellMIT LicenseMIT

SatisMeter iOS SDK

CI Status Version License Platform

SatisMeter is mobile and web platform for collecting customer feedback, based on Net Promoter Score. This package contains a survey widget that can be easily integrated into any iOS application.

Screenshot Screenshot

Requirements

  • iOS 7.1+

Installation

SatisMeter is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "SatisMeter"

Usage

Import header

#import <SatisMeter/SatisMeter.h>

Identify user

In your app delegate inside didFinishLaunchingWithOptions type this:

NSDictionary *traitsDictionary = [NSDictionary dictionaryWithObjectsAndKeys:
                                 @"James Bond" ,@"name",
                                 @"Gold", @"plan",
                                 @"2015-11-01T00:00:00.000Z", @"createdAt",
                                 nil];

[[SatisMeter sharedInstance] identifyUserWithUserId: @"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.

Author

SatisMeter, https://satismeter.com

License

satismeter-ios SDK is available under the MIT license. See the LICENSE file for more info.