Case & Topic
Get Available Topics
You can get the list of available topics by calling getTopicList
.
#import <TapTalkLive/TapTalkLive.h>
[[TapTalkLive sharedInstance] getTopicListWithSuccess:^(NSArray<TTLTopicModel *> *topicListArray) {
// Successfully fetched topics
}
failure:^(NSError *error) {
}];
Get Active User's Case List
To use this method, you need to first finish authentication process.
Once authenticated, you can obtain the active user's case list by calling getUserCaseList
.
#import <TapTalkLive/TapTalkLive.h>
[[TapTalkLive sharedInstance] getUserCaseListListWithSuccess:^(NSArray<TTLCaseModel *> *caseListArray) {
// Successfully fetched user cases
}
failure:^(NSError *error) {
}];
Create a New Case
To use this method, you need to first finish authentication process.
Once authenticated, you can create a new case for the user by calling createNewCase
, providing the topic ID and first message.
#import <TapTalkLive/TapTalkLive.h>
[[TapTalkLive sharedInstance] createNewCaseWithTopicID:TOPIC_ID
firstMessage:FIRST_MESSAGE
success:^(TTLCaseModel *caseModel) {
// Successfully created a new case
}
failure:^(NSError *error) {
}];
Last updated
Was this helpful?