1. DIUIT API provides a rich messaging API that can be used to build real-time communication features into any application without needing your own server infrastructure.
2. It allows for features like file transfers without servers, building HTTP services into apps, resuming transfers, and custom security.
3. The API documentation and sample code are available online, and the presentation provides demonstrations of chat rooms, authentication, and sending/receiving messages in an Android app using the DIUIT API.
6. HOW TO DO FILE TRANSFERRING WITHOUT SERVER
BUILDING HTTP SERVICE IN YOUR APP
resuming transfer
custom security
file live streaming
curl -X GET
-H "range: 1200-"
http://127.0.0.1:8080/v1/transfer
15. LIST CHAT ROOM
DiuitMessagingAPI.listChats(new DiuitCallback<ArrayList<DiuitChat>>()
{
@Override
public void onSuccess(final ArrayList<DiuitChat> chats)
{
// if success, return chatArrayList
}
@Override
public void onFailure(final int code, final JSONObject resultObj)
{
// if failure, it will return error code and result
}
});
27. RECEIVING MESSAGING
Remember, if you register a receiving in a activity or a obj, you have to unregister before leaving this activity or
destroy this obj.