Noobie question

Read 2257 times
I want to experiment with the Json API and I try to call
http://demo.castdemo.centova.com:25000/api.php?xm=server.getstatus&f=json&a[username]=admin&a[password]=demo
Instead of getting a Json response I get the streaming web page.
Do I miss something here?

thanks
what exactly are you trying to get? what kind of information to retrieve?

If you use this HTML code you will get your streams with details..there are other details you can add just check documentation...

<html>
<head>
     <meta http-equiv="refresh" content="600">
</head>


<br></br>
<script language="javascript" type="text/javascript" src="http://yourserverIP:port/system/streaminfo.js"></script>

<table width=100% border="2" align="center" cellpadding="0" cellspacing="1">
  <tr>
      <tr>
       <th>Number of stream</th>
       <th>Stream Name</th>
   <th>Connections</th>
       <th>Music being playerd</th>

    <tr>  <td>1</td> <td>stream name</td><td> <span id="cc_strinfo_listeners_YOURSTREAM" class="cc_streaminfo">Loading</span></td> <td> <span id="cc_strinfo_song_YOURSTREAM" class="cc_streaminfo">Loading</a></td>  </tr>


you need one line per steam, just repeat in the code...