Status could be: online
, offline
, busy
.
curl -XPOST \
-H "Content-Type: application/json" \
-H "Tat_username: username" \
-H "Tat_password: passwordOfUser" \
-d '{ "status": "online" }' \
https://<tatHostname>:<tatPort>/presenceget/topic/sub-topic
curl -XGET https://<tatHostname>:<tatPort>/presences/<topic>?skip=<skip>&limit=<limit> | python -m json.tool
curl -XGET https://<tatHostname>:<tatPort>/presences/<topic>?skip=<skip>&limit=<limit>&argName=valName&arg2Name=val2Name | python -m json.tool
topic:
/yourTopic/subTopicskip
: Skip skips over the n initial presences from the query resultslimit
: Limit restricts the maximum number of presences retrievedstatus
: status: online
, offline
, busy
dateMinPresence
: filter result on datePresence, timestamp Unix formatdateMaxPresence
: filter result on datePresence, timestamp Unix Formatusername
: username to searchcurl -XGET https://<tatHostname>:<tatPort>/presences/topicA?skip=0&limit=100 | python -m json.tool
curl -XGET https://<tatHostname>:<tatPort>/presences/topicA/subTopic?skip=0&limit=100&dateMinPresence=1405544146&dateMaxPresence=1405544146 | python -m json.tool
Admin can delete presences a another user on one topic. Users can delete their own presence.
curl -XDELETE \
-H "Content-Type: application/json" \
-H "Tat_username: username" \
-H "Tat_password: passwordOfUser" \
https://<tatHostname>:<tatPort>/presences/topic/sub-topic