Reputation: 195
i am integrating QuickBlox SDK in iOS App.i wanted to fetch all the users with the username.how to get this done with Quickblox.what search query is to be made.Please suggest me any ideas on this.
Use Case: whenever user enters some characters in the SearchBar then i have to fetch all my QuickBlox users with that name.
Upvotes: 0
Views: 530
Reputation: 539
You should use method:
+ (QB_NONNULL QBRequest *)usersWithFullName:(QB_NONNULL NSString *)userFullName
page:(QB_NULLABLE QBGeneralResponsePage *)page
successBlock:(QB_NULLABLE void (^)(QBResponse * QB_NONNULL_S response, QBGeneralResponsePage * QB_NULLABLE_S page, NSArray QB_GENERIC(QBUUser *) * QB_NULLABLE_S users))successBlock
errorBlock:(QB_NULLABLE void (^)(QBResponse * QB_NONNULL_S response))errorBlock;
where userFullName
will be your string from the search bar
Pagination parameter (for example):
QBGeneralResponsePage * page = [QBGeneralResponsePage responsePageWithCurrentPage:1 perPage:100]
Upvotes: 1