akhil-chaurasia / tokboxapi

Automatically exported from code.google.com/p/tokboxapi
0 stars 0 forks source link

PHP Fatal error: Call to undefined method TokBoxUser::createGuest() #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. running php embedded on my web page:

<?php
require_once '../SDK/TokBoxUser.php';
try {
$apiObj = TokBoxUser::createGuest();
echo "printing results:<br/>";
echo "Jabber ID: ".$apiObj->getJabberId()."<br/>";
} catch(Exception $e) {
echo "EXCEPTION: ".$e->getMessage();
}
?> 

What is the expected output? What do you see instead?
Jabber ID echoed on the web page. Instead I get an error message in the log:
PHP Fatal error: Call to undefined method TokBoxUser::createGuest()

What version of the product are you using? On what operating system?
PHP SDK for v1 of the TokBox Platform on Linux (SUSE)

Please provide any additional information below.
Using code below returns the email:

<?php
require_once '../SDK/TokBoxUser.php';
try {
$apiObj = TokBoxUser::createUser('first_last@yahoo.com','First','Last');
echo "printing results:<br/>";
echo "Jabber ID: ".$apiObj->getJabberId()."<br/>";
} catch(Exception $e) {
echo "EXCEPTION: ".$e->getMessage();
}
?> 

Original issue reported on code.google.com by atte.j.k...@gmail.com on 3 Jun 2010 at 4:34

GoogleCodeExporter commented 9 years ago
The v1 version of the PHP SDK has no need for guest users.

The current PHP Tutorial is based on v0 of the SDK. I will update this on the 
wiki page so that people are aware. To start a call in the v1 of the SDK you 
simply call the createCall() function

Original comment by melih.onvural@gmail.com on 24 Jun 2010 at 5:31

GoogleCodeExporter commented 9 years ago
how can u help that?

Original comment by murali1...@gmail.com on 29 Dec 2010 at 12:25

GoogleCodeExporter commented 9 years ago
Please use the newer version of the PHP tutorial which will show you how to 
create a call without a guest user

Original comment by melih.onvural@gmail.com on 30 Dec 2010 at 12:11