Method | Method detail |
---|---|
getHashtagSuggestion() | Convenient getter method to get hashtag auto suggestion list which can be used further on creator and other screen. |
getContentUploadUrl() | Convenient getter method to get signed url for upload new content on server. |
getTagFriendList() | Convenient getter method to get tag friends list which can be used on creator module while creating post. |
getContentUploadCategories() | Convenient getter method to get categories list which user will tag with the posting content during creating the post. |
uploadContentMetaData() | Convenient getter method to get categories list which user will tag with the posting content during creating the post. |
getSoundList() | Convenient getter method to get sound list which user will tag with the posting content during creating the post. |
Requested parameter.
text: parameter text used to rander related name list.
// Call to get hashtag auto suggestion list based on search string
CreatorData.sharedInstance.getHashtagSuggestion(text: "search String") {result in
if (result?.data) != nil {
// Do Something
print(result?.data as Any)
}
} failure: {error in
print(error)
// Do Something
}
Requested parameter.
type: parameter text type which define what type of content user wanted to upload.
// Call to get hashtag auto suggestion list based on search string
CreatorData.sharedInstance.getContentUploadUrl(type: CreatorOptions.video.rawValue) { [weak self] result in
guard let weakSelf = self else { return }
//result
} failure: { [weak self] (error, code) in
guard let weakSelf = self else { return }
// Error message
}
Requested parameter.
text: parameter text used to rander related name list.
limit: Total number of record which you wanted to get in single call
offset: Number of page which you wanted to trigger
CreatorData.sharedInstance.getTagFriendList(text: "",
limit: 10,
offset: 1) {result in
if (result?.data) != nil {
// Do Something
}
} failure: {error in
// Do Something
}
Requested parameter.
text: parameter text used to rander related name list.
limit: Total number of record which you wanted to get in single call
offset: Number of page which you wanted to trigger
CreatorData.sharedInstance.getContentUploadCategories(text: "", limit: 100, offset: 1) { [weak self] postVideoCategoryList in
guard let weakSelf = self else { return }
} failure: { [weak self] error, code in
guard let weakSelf = self else { return }
}
Requested parameter.
userId: parameter text used to rander related name list.
url: Total number of record which you wanted to get in single call
title: Number of page which you wanted to trigger
videoCoverImage:"content cover image"
description: "Content description"
follow: "Follow user of the content"
type: "Type of the content, Video/Iamge"
categoryId: "category Id which is selected with content"
categoryName: "Category name which is selected with content"
taggedUser: "Tagged user list which tagged with content"
ContentURLs: "Array: Content urls list which is posting with content"
CreatorData.sharedInstance.uploadContentMetaData(
userId: userId,
url: s3Url,
title: title,
videoCoverImage: dataString,
description: description,
follow: follow,
type: videoType,
categoryId: categoryId,
categoryName: categoryName,
taggedUsers: taggedUsers,
contentUrls: contentUrlArray) { [weak self] result in
guard let weakSelf = self else { return }
weakSelf.isLoading = false
guard result?.result != nil else { return }
weakSelf.videoInfoUploadToServerResponse = result
weakSelf.didGetVideoUploadToServerResponse?()
} failure: { [weak self] error, code in
guard let weakSelf = self else { return }
weakSelf.isLoading = false
}
Requested parameter.
searchText: parameter text used to rander related sound.
limit: Total number of record which you wanted to get in single call
offset: Number of page which you wanted to trigger
CreatorData.sharedInstance.getSoundList(searchText: searchText, limit: limit, offset: pageOffset) { [weak self] result in
guard let weakSelf = self else { return }
weakSelf.isLoading = false
if result.result != nil {
weakSelf.soundObject = result
}
} failure: { [weak self] error, code in
guard let weakSelf = self else { return }
weakSelf.isLoading = false
weakSelf.alertMessage = error
}