How can i add guest user to Hipchat Guest Room by Full Name? Edited

I have created custom web app as per my requirement.

 

I wanted to add guest user using Full Name to Hipchat Guest Room.

 

When i am trying to add user i am getting response as below:

 

[error] => stdClass Object
(
     [code] => 400
     [message] => Unable to create user. You must purchase more licenses in order to      add additional users
     [type] => Bad Request
)

Here is my code:

 

public static function invite_user_to_group($email, $name){
     global $token;

     // Invite User Start
     $data = array(
          "email" => $email,
          "name" => $name
     );
     $url_send = HOMEURL."/v2/invite/user?auth_token=".TOKEN;
     $str_data = json_encode($data);
     $res = Livechat::sendPostData($url_send, $str_data);

     if($res != '')
          return $res;
     else
          return false;

}

 

Please help me how can i do that. Thank in advanced!!!

 

1 answer

No one is replying here...

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Tuesday in Hipchat

Moving from Hipchat to Stride? Here’s what you’ll love

Heya, Hipchat friends! We’re so happy you’re checking out   Stride. Whether you know it or not, you have been instrumental in making Stride come to life. Every feature, design, and functionality...

145 views 3 8
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you