Base is prohibited. Need user

I use the QuickBlox SDK to download chat history. Like this:

  • Create session
  • after successfully creating the Initialize chatService section
  • Login to the chat service
  • After a successful login.

Bundle bundle = new Bundle(); QBRequestGetBuilder customObjectRequestBuilder = new QBRequestGetBuilder(); customObjectRequestBuilder.setPagesLimit(ConstsCore.CHATS_DIALOGS_PER_PAGE); try { List<QBDialog> chatDialogsList = QBChatService.getChatDialogs(null, customObjectRequestBuilder,bundle); } catch (QBResponseException e) { e.printStackTrace(); } 

At this point, I get this exception:

base is prohibited. Need a user.

+5
source share
1 answer

Chat in real time

but the search for chat dialogs is a REST API, so you need to log in using the REST API in order to use REST API requests

http://quickblox.com/developers/SimpleSample-users-android#Sign_In_with_login_.26_password

0
source

Source: https://habr.com/ru/post/1246548/


All Articles