But my code does't work. Please help me .
Code: Select all
<?php
require_once dirname(__FILE__).'/../Client/Client.php';
try {
// Create a WURFL Cloud Config
$config = new WurflCloud_Client_Config();
// Set your API Key here
$config->api_key = '301618:I10TsGtO2Ejy9ZYlFQzw7mki4rapCKBR';
// Create a WURFL Cloud Client
$client = new WurflCloud_Client_Client($config, new WurflCloud_Cache_Null());
// Detect the visitor's device
$client->detectDevice();
$phone = $client->getDeviceCapability('marketing_name');
echo "$phone";
?>