Skip to main content
Version: 5.7.0

GetMessageBoxes

Returns the list of messageboxes for this user. brainCloud currently only supports the default "inbox" and "sent" messageboxes.

None.

ServiceOperation
messagingGET_MESSAGE_BOXES

Method Parameters

None.

Usage

http://localhost:3000
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.MessagingService.GetMessageBoxes(successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"items": [
"inbox",
"sent"
]
}
}
Common Error Code

Status Codes

CodeNameDescription
40601FEATURE_NOT_ENABLEDMessaging feature is not enabled for app.