UserAccess¶
Collection view¶
WouaMatrimonySDK.user().collectionView())
sdk.user().collectionView { (result:CollectionRecord?, error:WouaSDKException?) in
if let result = result{
print(result)
}
else if let error = error{
print(error.code)
print(error.message)
}
}
View profile¶
WouaMatrimonySDK.user().getUserProfile()
sdk.user().getUserProfile { (result:UserRecord?, error:WouaSDKException?) in
if let result = result{
print(result)
}
else if let error = error{
print(error.code)
print(error.message)
}
}
View other profile¶
WouaMatrimonySDK.user().getUserProfile(userKey)
sdk.user().getUserProfile(userKey: "ck00b65d8dA32e2A4e48A9d28Acd516eb0d423", callback:{ (result:UserRecord?, error:WouaSDKException?) in
if let result = result{
print(result)
}
else if let error = error{
print(error.code)
print(error.message)
}
})
Action api¶
Profile view
WouaMatrimonySDK.user()
.userAction(ActionType.PROFILE_VIEW,"ck088103e9A6059A46c8Ab4baA636fe580d192")
sdk.user().userAction(actionType: ActionType.profileView, userKey: "ck00b65d8dA32e2A4e48A9d28Acd516eb0d423") { (result:Result?, error:WouaSDKException?) in
if let result = result{
print(result)
}
else if let error = error{
print(error.code)
print(error.message)
}
}
Horoscope
WouaMatrimonySDK.user()
.userAction(ActionType.HOROSCOPE_DOWNLOAD,"ck088103e9A6059A46c8Ab4baA636fe580d192")
sdk.user().userAction(actionType: ActionType.horoscopeDownload, userKey: "ck00b65d8dA32e2A4e48A9d28Acd516eb0d423") { (result:Result?, error:WouaSDKException?) in
if let result = result{
print(result)
}
else if let error = error{
print(error.code)
print(error.message)
}
}
Contact view
WouaMatrimonySDK.user()
.userAction(ActionType.CONTACT_VIEW,"ck088103e9A6059A46c8Ab4baA636fe580d192")
sdk.user().userAction(actionType: ActionType.contactView, userKey: "ck00b65d8dA32e2A4e48A9d28Acd516eb0d423") { (result:Result?, error:WouaSDKException?) in
if let result = result{
print(result)
}
else if let error = error{
print(error.code)
print(error.message)
}
}
ShortlistPLP (profile Listing api)
WouaMatrimonySDK.user()
.userAction(ActionType.SHORTLIST,"ck088103e9A6059A46c8Ab4baA636fe580d192")
sdk.user().userAction(actionType: ActionType.shortlist, userKey: "ck00b65d8dA32e2A4e48A9d28Acd516eb0d423") { (result:Result?, error:WouaSDKException?) in
if let result = result{
print(result)
}
else if let error = error{
print(error.code)
print(error.message)
}
}
Filter profile¶
WouaMatrimonySDK.user().filterUserProfile(filterDetails,page,size))
sdk.user().getUserProfiles(subId:2, page: 3, size: 4,discoverType: DiscoverType.none, callback: { (result:[UserRecord]?, error:WouaSDKException?) in
if let result = result{
print(result)
}
else if let error = error{
print(error.code)
print(error.message)
}
})
Search profile¶
WouaMatrimonySDK.user()
.searchUserProfile(SearchType.REGISTRATION_ID,search,page,size))
sdk.user().searchUserProfile(name: "customer5y69612@woualabs.com", page: 1, size: 10, callback: { (result:[UserRecord]?, error:WouaSDKException?) in
if let result = result{
print(result)
}
else if let error = error{
print(error.code)
print(error.message)
}
})
Report profile¶
WouaMatrimonySDK.user().reportUserProfile(report,userKey))
sdk.user().reportUserProfile(report: "It is fake", userKey: "ck9a3d7fc9Aa430A436cAbb5eAe679e3561ac2", callback: { (result:Result?, error:WouaSDKException?) in
if let result = result{
print(result)
}
else if let error = error{
print(error.code)
print(error.message)
}
})
User Activity¶
User
WouaMatrimonySDK.user()
.userActivity(ActionType.HOROSCOPE_DOWNLOAD,ActivityType.USER))
sdk.user().userActivity(actionType: ActionType.contactView, activityType:ActivityType.user)
{ (result:[UserRecord]?, error:WouaSDKException?) in
if let result = result{
print(result)
}
else if let error = error{
print(error.code)
print(error.message)
}
}
Other user
WouaMatrimonySDK.user()
.userActivity(ActionType.HOROSCOPE_DOWNLOAD,ActivityType.OTHER_USER))
sdk.user().userActivity(actionType: ActionType.contactView, activityType:ActivityType.otherUser)
{ (result:[UserRecord]?, error:WouaSDKException?) in
if let result = result{
print(result)
}
else if let error = error{
print(error.code)
print(error.message)
}
}
Change app language¶
WouaMatrimonySDK.user().changeLanguage("ta"))
sdk.user().changeLanguage(appLanguageId: "en", callback:{ (result:Result?, error:WouaSDKException?) in
if let result = result{
print(result)
}
else if let error = error{
print(error.code)
print(error.message)
}
})
Fetch app language¶
WouaMatrimonySDK.user().fetchAppLanguageId()
sdk.user().fetchLanguage { (result:String?) in
if let result = result{
print(result)
}
}