Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).
Announcements
Intel Customer Support will be observing the Martin Luther King holiday on Monday, Jan. 17, and will return on Tues. Jan. 18.
For the latest information on Intel’s response to the Log4j/Log4Shell vulnerability, please see Intel-SA-00646

N.API.getUsers 404 error?

Somnus_Chen
Beginner
112 Views

Hi,

   How to use JAVA HttpURLConnection or javascript to request resutful-api N.API.getUsers/getUser? How to set Method and Parameters? I always got 404 error!

   javascript: 

      var req = new XMLHttpRequest();

      var url = 'http://192.168.0.159:3004/getUsers/';

      var body = {room:"xxxxxroomIdxxxxxx"};

      var req.onreadystatechange = function(){

         if(req.readyState === 4){

                  console.log(req.responseText);

         }

     }

     req.open('GET', url, false);// POST/GET

     req.send(JSON.stringify(body));

  Anybody help? Thanks!

0 Kudos
0 Replies
Reply