User

You can obtain current TapTalk.io active user data by using these methods:

Get TapTalk.io Active User

Obtain current TapTalk.io active user from cache.
Objective-C
#import <TapTalk/TapTalk.h>
TAPUserModel *tapTalkActiveUser = [[TapTalk sharedInstance] getTapTalkActiveUser];

Refresh TapTalk.io Active User

Obtain current Retrieve latest TapTalk.io active user data from the server.
Objective-C
#import <TapTalk/TapTalk.h>
[[TapTalk sharedInstance] refreshActiveUserWithSuccess:^{
// Successfully updated active user data
} failure:^(NSError * _Nonnull error) {
// Failed to update active user data
}];

Update Active User Bio

You are able to update the active user's bio with a custom string by calling updateActiveUserBio from TapCoreContactManager class.
Successful update will be reflected in the bio field of the updated active user's data (TAPUserModel.bio).
Objective-C
[[TAPCoreContactManager sharedManager] updateActiveUserBio:BIO_STRING success:^{
// Successfully updated active user bio
} failure:^(NSError * _Nonnull error) {
// Failed to update active user bio
}];
Parameters BIO_STRING: (NSString *) custom string for active user bio
Last modified 10mo ago