rest

REST API for HTML5 chat

New HTML5 features REST API available

We are adding new REST interfaces that allow users to get some informations about their chat.

The pattern is:

https://chat.html5-chat.com:8008/{action}/{webmasterid}/{token}

for now we added 2 REST APIs:


getNumberUsers: allows to get the number of users in all rooms in chat!

This example is for : webmasterid = 1 token = 999

https://chat.html5-chat.com:8008/getNumberUsers/1/999


getUsers : get all users in all rooms in chat

This example is for : webmasterid = 1 token = 999

https://chat.html5-chat.com:8008/getUsers/1/999


How to use that in php for instace:

$numberOfUsers = file_get_contens("https://chat.html5-chat.com:8008/getNumberUsers/1/999");

One thought to “REST API for HTML5 chat”

  1. You made a type error…
    It should be:
    $numberOfUsers = file_get_contents(“https://chat.html5-chat.com:8008/getNumberUsers/1/999”);

    ( contents and not contens )

    regards
    Paul

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.