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) -> TaskHandle
Parameters
completion
a callback that receives the UserProfile or an error.
-
Update the user profile data.
Declaration
Swift
@discardableResult public func update(_ profile: UserProfile, completion: @escaping NoValueCallback) -> TaskHandle
Parameters
completion
a 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) -> TaskHandle
Parameters
completion
a callback that’s called on completion and might receive an error.