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 Star
$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!!!
Thanks for your reply,
I wanted to added guest user to guest room via API.
I am using Hipchat Server.
Hi Parth,
This is currently not possible via the API, here's an existing feature request about it:
HCPUB-3580 - Create API endpoint to invite guest user to room
Please watch and up-vote the feature above. In the meantime, here's a workaround:
I hope this helps.