How to make an API Call?

Hi there.
I'm trying to use PHPList API service and make a call with NuSOAP client.
Can you please tell me or give me an example what method should I call in order add new user to a certain list.
For example when I try this:
I'm getting this Error message:
operation insertNewUser not present in WSDL.
I'm trying to use PHPList API service and make a call with NuSOAP client.
Can you please tell me or give me an example what method should I call in order add new user to a certain list.
For example when I try this:
- Code: Select all
$client = new nusoap_client('https://www.phplist.com/API/soap.php?wsdl&tag=mytag&user=myuser&pass=mypass', 'wsdl');
$param = array('array_email' => array('my@email.com'), 'list_id' => 2);
$result = $client->call('phpListHosted.insertNewUser', $param);
I'm getting this Error message:
operation insertNewUser not present in WSDL.