Help - Search - Members - Calendar
Full Version: COM API wrapper - calling convert and user classes
Skype Community > English > Development, Betas and Skype Garage > Skype Public API
awasti_
Hi

Using the ActiveS COM Wrapper, I have connected successfully to skype in php using following:

[quote]
<?php
class Skype {

var $terminated = false;
var $attached = false;
public $skype;

function connect() {
$skype = new COM("SkypeAPI.Access");
try {
$skype->Connect();
} catch (Exception $com_exception) {
print "Exception calling skype.connect - <$com_exception>n";
}
sleep(5);
print "called connectn";
}
...
}

}

// Create skype object
$skype = new COM("SkypeAPI.Access");
$sink = new Skype();
com_event_sink($skype, $sink, "Skype");

$sink->connect();
[/quote]
-------

Now that I have connected, I'd like to manipulate the other classes. When I try to issue the following (within or outside the class) I get error:
[quote]
$convert = $skype->convert;
[/quote]
Error:
PHP Fatal error: Uncaught exception 'com_exception' with message 'Unable to lookup `convert': Unknown name.

I have tried other ways, but I guess need general direction how to use the COM wrapper?

Thanks in advance.
carcass_
There is no "convert" method or property. You may be looking for the conversion property.
awasti_
I was referring to the convert call in this post:
http://forum.skype.com/viewtopic.php?t=47585

The reason I am confused is that they are using the COM("Skype4COM.Skype")

while the KhosLab ActiveS wrapper is COM("SkypeAPI.Access")

This leads me to questions:
1. What's the difference.
2. How do we use the ActiveS wrapper and place a call after connecting.

Thanks
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.