use $userID

master
Christopher Latza 2020-06-09 00:51:39 +02:00
parent 86f1018276
commit 204ac0e943
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<?php <?php
function getServerURI($homeURL, $userID) function getServerURI($homeURL, $userID)
{ {
$xml = '<?xml version="1.0" encoding="utf-8"?><methodCall><methodName>get_server_urls</methodName><params><param><value><struct><member><name>userID</name><value><string>1148b04d-7a93-49e9-b3c9-ea0cdeec38f7</string></value></member></struct></value></param></params></methodCall>'; $xml = '<?xml version="1.0" encoding="utf-8"?><methodCall><methodName>get_server_urls</methodName><params><param><value><struct><member><name>userID</name><value><string>'.$userID.'</string></value></member></struct></value></param></params></methodCall>';
$optionen = stream_context_create(array('http' => array('timeout' => 1, 'method' => 'POST', 'header' => 'Content-Type: application/xml', 'content' => $xml))); $optionen = stream_context_create(array('http' => array('timeout' => 1, 'method' => 'POST', 'header' => 'Content-Type: application/xml', 'content' => $xml)));
$result = file_get_contents($homeURL, false, $optionen); $result = file_get_contents($homeURL, false, $optionen);