ReferralsAPI
public enum ReferralsAPI
                Caseless enumeration with static methods to send Referrals Requests
- 
                  
                  
Sends a request to generate referral code that can be shared using facebook or copied in a clipboard.
Declaration
Swift
public static func generateReferralCode(completion: ResponseCompletion<[[String : String]]> = nil)Parameters
completionThe closure to be executed once the request has finished.
 - 
                  
                  
Sends a request to submit a referral code.
Declaration
Swift
public static func submitReferralCode(_ referralCode: String, completion: ResponseCompletion<Bool> = nil)Parameters
referralCodeThe referral code to submit.
completionThe closure to be executed once the request has finished.
 - 
                  
                  
Calls
ContentAPI.getContentTokens.Declaration
Swift
public static func getReferralContentToken(completion: ResponseCompletion<[String : ContentToken.Value]> = nil)Parameters
completionThe closure to be executed once the request has finished.
 
View on GitHub
        ReferralsAPI Enumeration Reference