Logo.CortexAG

Anmelden +

Beispiel einer Portalliste


//*** url to call the dataservice in the right database ***//
$url = 'http://localhost/i/UniPlexDataservice/updjsr.php';

//*** Request-ID to identitfy the right returned json object ***//
$iRequestID   = 1;


//*** Don't forget to get the user handle ***//
/*
. . .
*/


//*** get specific row data ***//
$jRequest   = array(
  'method'   => 'getPortalRowListData',
               'requestid' => $iRequestID,
               'param'     => array(
      'portal' => 'Schulung-einfach',
'UpdJsrHdl' => '___abcdefghijklmn___', // <- set handle!!!
               'group' => 'Teile',
               'row'   => 'Typen'
                )
 );

//*** parameter-array for php-function 'stream_context_create' ***//
$CONTEXT_OPT = array(
  'http' => array( 'method' => 'POST',
              'content' => json_encode($jRequest),
              'header'=> 'Content-Type: application/json\r\n' .
              'Accept: application/json\r\n')
           );

//*** create context params for php-function 'file_get_contents' ***//
$context = stream_context_create( $CONTEXT_OPT );

//*** get contents with params and decode json-object ***//
$jRes = file_get_contents( $url, false, $context );
$aRes = json_decode($jRes, true);

//*** print result ***//
print_r($aRes);

?>

 

 Hinweise zur Online-Hilfe
 

© 2017 Cortex AG
(letzte Aktualisierung: 12.04.2017)

 Haftungsausschluss 

Impressum    AGB