Allow your BuddyPress members to access certain BuddyPress features via XML-RPC.
You may restrict settings on a wp_cap level.
You can select which RPC commands to allow as well.
-
bp.updateProfileStatus: send an activity_update
params: array ($username, $password, $data[‘status’] )
returns: array (activity_id,message,confirmation,url)
-
bp.postComment: submit a comment on a given post
params: array ($username, $password, $data[‘comment’], $data[‘activity_id’] )
returns: array (activity_id,message,confirmation,url)
-
bp.deleteProfileStatus: delete an activity_update
params: array ($username, $password, $data[‘activity_id’] )
returns: array (activity_id,message,confirmation,url)
-
bp.getActivity: get various activity stream items
params: array ($username, $password, $data[‘scope’,’max’,’user_data’,’action’,’action_id’,’action_data’] )
returns: array (activities,message,confirmation)
sending the ‘scope’ parameter allows you to filter the results as per the plugin’s presets (favorites, friends, groups, mentions, sitewide, just-me, my-groups, following) or by a specific BP action type (e.g. activity_update)
sending the ‘action’ parameter makes it perform a specified action on an activity id (‘action_id’), viz. ‘delete’ or ‘comment’ (put comment text in ‘action_data’).
sending the ‘user_data’ parameter makes it include a list with the user’s notifications, etc.
returns: array (confirmation, message)
-
bp.getMemberInfo: get info for a given user id
params: array ($username, $password, $data[‘user_id’,’action’,’action_id’,’action_data’] )
returns: array (confirmation, message)
sending the ‘action’ parameter makes it perform a specified action on a user id (‘action_id’) (not yet implemented).
-
bp.deleteMember: deletes member for given user id (must be admin, or it does nothing)
params: array ($username, $password, $data[‘user_id’] )
returns: array (confirmation, message)
-
bp.updateExternalBlogPostStatus: send an activity stream update filed under blogs
-
bp.deleteExternalBlogPostStatus: delete the activity update related to an already posted activity record (ie, if unpublishing a blog post)
-
bp.getMyFriends: get a list of friends
-
bp.getGroups: get a list of groups
-
bp.getNotifications: member adminbar notifications (new message, new friend, follower, etc)
params: array ($username, $password)
returns: array (confirmation, total, message)
-
bp.getMessages: get latest message in each thread
params: array ($username, $password, $data[‘box’,’type’,’page_num’,’pag_page’,’search_terms’,’action’,’action_id’,’action_data’])
returns: array (confirmation, total, message)
sending the ‘action’ parameter makes it perform a specified action on a thread id (‘action_id’), viz. ‘delete’, ‘read’, ‘unread’, or ‘reply’ (put reply text in ‘action_data’).
-
bp.verifyConnection: check if connection works
params: array ($username, $password)
returns: array (confirmation, message)