Profile
public class Profile : UserProfileAPI
Gives you access to user profile related information
-
Retrieve the user profile data.
Declaration
Swift
@discardableResult public func fetch(completion: @escaping (Result<UserProfile, ClientError>) -> Void) -> TaskHandleParameters
completiona callback that receives the UserProfile or an error.
-
Update the user profile data.
Declaration
Swift
@discardableResult public func update(_ profile: UserProfile, completion: @escaping NoValueCallback) -> TaskHandleParameters
completiona callback that’s called on completion and might receive an error.
-
Fetches the list of required fields that the user has not filled out yet
Declaration
Swift
@discardableResult public func requiredFields(completion: @escaping RequiredFieldsResultCallback) -> TaskHandleParameters
completiona callback that’s called on completion and might receive an error.
View on GitHub
Profile Class Reference