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, nullable) NSString *userId;

    Swift

    var userId: String? { get }
  • The share-specific part of the URL, used to track one specific share.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable) NSString *shareId;

    Swift

    var shareId: String? { get }