Commit b2b51ca3 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Added new example. JM-234


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1663 b35dd754-fafc-0310-a699-88a17e54d16e
parent e21ea02f
...@@ -95,12 +95,15 @@ However, if the request does not include the <b>notavailable</b> parameter then ...@@ -95,12 +95,15 @@ However, if the request does not include the <b>notavailable</b> parameter then
image for user offline will be used. Therefore, each request <b>MUST</b> include the image for user offline will be used. Therefore, each request <b>MUST</b> include the
<b>notavailable</b> parameter.<p> <b>notavailable</b> parameter.<p>
<b>Examples of URL<b> <b>Examples of URL</b><br>
This example is requesting images and is using a single parameter for all the images: This example is requesting images and is using a single parameter for all the images:
http://localhost:9090/plugins/presence/presence?username=admin&sender=user2@localhost&notavailable=http://localhost:9090/images/unknown.gif&img=http://localhost:9090/images/${presence}.gif http://localhost:9090/plugins/presence/presence?username=admin&sender=user2@localhost&notavailable=http://localhost:9090/images/unknown.gif&img=http://localhost:9090/images/${presence}.gif
<p> <p>
This example is requesting images and is sending a parameter for each possible presence type: This example is requesting images and is sending a parameter for each possible presence type:
http://localhost:9090/plugins/presence/presence?username=admin&sender=user2@localhost&notavailable=http://localhost:9090/images/unknown.gif&offline=http://localhost:9090/images/user-red-16x16.gif&available=http://www.jivesoftware.com:9090/images/user-yellow-16x16.gif http://localhost:9090/plugins/presence/presence?username=admin&sender=user2@localhost&notavailable=http://localhost:9090/images/unknown.gif&offline=http://localhost:9090/images/user-red-16x16.gif&available=http://www.jivesoftware.com:9090/images/user-yellow-16x16.gif
<p>
This example is requesting presence information in XML format:
http://localhost:9090/plugins/presence/presence?username=admin&sender=user2@localhost&type=xml
</body> </body>
</html> </html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment