Skip to content

Commit

Permalink
Merge pull request #571 from Iterable/jay/MOB-4689-set-id-public
Browse files Browse the repository at this point in the history
[MOB-4689] add set functions into public space
  • Loading branch information
roninopf committed Aug 10, 2022
2 parents 537501e + 201c032 commit d15c2a0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions swift-sdk/IterableAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,14 @@ public final class IterableAPI: NSObject {

// MARK: - SDK

public static func setEmail(_ email: String?, _ authToken: String? = nil) {
internalImplementation?.setEmail(email, authToken: authToken)
}

public static func setUserId(_ userId: String?, _ authToken: String? = nil) {
internalImplementation?.setUserId(userId, authToken: authToken)
}

/// Handle a Universal Link
///
/// For Iterable links, it will track the click and retrieve the original URL,
Expand Down

0 comments on commit d15c2a0

Please sign in to comment.