First create a connection using your credentials
require 'vendor/autoload.php';
$connection = \Scn\EvalancheSoapApiConnector\EvalancheConnection::create(
'given host',
'given username',
'given password'
);
Then create the client of your choice e.g. FormClient
$statistic = $connection->createFormClient()->getStatistics(123, false);
Work with the results
$statistic->getImpressions()
Most of the methods will require/return structs which are defined and described in the struct repository.
Dict-like, untyped datatypes are transmitted using a HashMap
and HashMapItem
.
In example, this command will update some attribute content of all profiles having a certain email-address.
$connection->createProfileClient()->updateByKey(
666, // your pool id
'EMAIL', // name of the key to search for
'hjs@compuglobalhypermega.net', // value to search for
new \Scn\EvalancheSoapStruct\Struct\Generic\HashMap([
new \Scn\EvalancheSoapStruct\Struct\Generic\HashMapItem('STREET', '123 Fake Street'),
new \Scn\EvalancheSoapStruct\Struct\Generic\HashMapItem('CITY', 'Springfield'),
])
);