&lt?php
	// Set the authentication and the http request in GET method
	$context = stream_context_create(array( 
		'http' => array( 
		  'method'  => 'GET', 
		  'header'  => sprintf("Authorization: Basic %s\r\n", base64_encode('myusername:mypassword')). 
					   "Content-type: application/x-www-form-urlencoded\r\n",
		  'timeout' => 5, 
		), 
	  )); 
	
	// Make the connection
	$xmlResult = file_get_contents('http://www.agendize.com/api/1.0/action?media=sms&key=3ac024abf8c72460764b965199f81808f4cb08&id=142514&phone=+33611111111 ', false, $context);
	// Retrieve AgendiZe response code obtained by searching in the parsed xml content
	$dom = new DomDocument();
	$dom->loadXML($xmlResult);
	$result = $dom->getElementsByTagName('result')->item(0);
	echo $result->nodeValue;
?>