MCLReferralCode
@interface MCLReferralCode : NSObject
The referral code is the magic part tacked on to URLs shared through the SDK that allows us to credit a user for inviting others. You do not need to create these yourself.
A referral code consists of two parts:
userId
: 8 characters that uniquely identifies the user/app combination.shareId
: 2+ characters that identifies a given share. This enables us to associate each share with a GIF.
-
The device/app specific part of the URL. Can be used to identify other users of the app.
Declaration
Objective-C
@property (readonly, strong, nonatomic) NSString *_Nonnull userId;
Swift
var userId: String { get }
-
The share-specific part of the URL, used to track one specific share.
Might be an empty string if the link the referral code came from was truncated to only include the
userId
.Declaration
Objective-C
@property (readonly, strong, nonatomic) NSString *_Nonnull shareId;
Swift
var shareId: String { get }