[Unofficial] Cbox Android Sdk
This android project was created to allow the native interaction with a Cbox Chat (http://www.cbox.ws/) from an Android application.
I used this project to allow the users of the mobile android application Moreirense1938 (https://play.google.com/store/apps/details?id=com.sandro.mfc) interact with the Cbox Chat avaliable at the blog Moreirense1938 (http://www.moreirense1938.com/).
The project already have implemented three actions:
- Login User
- Send a Message
- Remove a Message
How to use:
- Import the project as an Android Library to your workspace
- Get your CboxId and CboxTag (you can get this values from your cbox url: http://www5.cbox.ws/box/?boxid=CBOXID&boxtag=CBOXTAG&sec=form)
- Instanciate the Cbox Object: CboxApi cbox = new CboxApi("CBOXID", "CBOXTAG");
- Login to get the user token: String token = cbox.performALogin(USERNAME, PASSWORD);
- Send a message: cbox.postAMessage(USERNAME, EMAIL, TOKEN, MESSAGE);