public function get_item($request) { // TODO: query logic. and permissions. and other parameters that might need to be set. etc $activity = bp_activity_get(array('in' => (int) $request['id'])); $retval = array($this->prepare_response_for_collection($this->prepare_item_for_response($activity['activities'][0], $request))); return rest_ensure_response($retval); }