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

    completion

    The 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

    referralCode

    The referral code to submit.

    completion

    The 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

    completion

    The closure to be executed once the request has finished.