extend the API for sending private messages
-
Hello,
We are trying to use the api, to send messages from an external app, not developed with wordpress.
/wp-json/buddypress/v1/messages/
We send the authentication token, but when it tries to create the new message it throws this error:
{ "code": "bp_rest_messages_create_failed", "message": "There was an error trying to create the message.", "data": { "status": 500 }
Reviewing your code we see that it uses this function that validates if the user is logged in : bp_loggedin_user_id
Can this endpoint (/wp-json/buddypress/v1/messages/ ) be used by a valid user who is not logged in?
Is there any way to extend this endpoint to be used from an app not developed with wordpress ?
The page I need help with: [log in to see the link]
- The topic ‘extend the API for sending private messages’ is closed to new replies.