Home

PHP

Networks

This API call returns a list of available affiliate networks.

API Function: get_networks

Parameters:

Name Type Description
username string Your API username. You should have received this with your account
subscription_id string Your Subscription ID. You can copy or regenerate it from your API management interface.

 

Response fields:

Name Type Description
network_id numeric The unique ID associated with the affiliate network
network_name string The affiliate network's name
country_id numeric The country id for which the network is joined

 

              
              
              
              
<?php   
$api_username             = '*******';
$api_subscription         = '*******';

try
{
        $client    = new SoapClient('https://synced.io/api/v2?wsdl');
        $networks  = $client->get_networks($api_username, $api_subscription);			
}
catch(Exception $e)
{
        echo $e->getMessage();
}    


if(!empty($networks))
{
    print_r($networks);
}
?>