src/HipChat/HipChat.php
public function create_room($name, $owner_user_id = null, $privacy = null, $topic = null, $guest_access = null) {
     $args = array(
       'name' => $name
     );

     if ($owner_user_id) {
       $args['owner_user_id'] = $owner_user_id;
     }

     if ($privacy) {
       $args['privacy'] = $privacy;
     }

     if ($topic) {
       $args['topic'] = $topic;
     }

     if ($guest_access) {
       $args['guest_access'] = (int)$guest_access;
     }

     // Return the std object
     return $this->make_request('rooms/create', $args, 'POST');
    }
public function create_room($name, $owner_user_id = null, $privacy = null, $topic = null, $guest_access = null) {
     $args = array(
       'name' => $name
     );

     if ($owner_user_id) {
       $args['owner_user_id'] = $owner_user_id;
     }

     if ($privacy) {
       $args['privacy'] = $privacy;
     }

     if ($topic) {
       $args['topic'] = $topic;
     }

     if ($guest_access) {
       $args['guest_access'] = (int)$guest_access;
     }

     // Return the std object
     return $this->make_request('rooms/create', $args, 'POST');
    }
public function create_room ( $ name , $ owner_user_id = null , $ privacy = null , $ topic = null , $ guest_access = null ) { $ args = array ( 'name' => $ name ) ; if ( $ owner_user_id ) { $ args [ 'owner_user_id' ] = $ owner_user_id ; } if ( $ privacy ) { $ args [ 'privacy' ] = $ privacy ; } if ( $ topic ) { $ args [ 'topic' ] = $ topic ; } if ( $ guest_access ) { $ args [ 'guest_access' ] = ( int ) $ guest_access ; } // Return the std object return $ this -> make_request ( 'rooms/create' , $ args , 'POST' ) ; }
Create a room

@see http://api.hipchat.com/docs/api/method/rooms/create
Create a room