Kandy is a full-service cloud platform that enables real-time communications for business applications. io.kandy is a Titanium module that makes it easy to use Kandy API with Titanium project.
Kandy homepage: kandy.io
- Android
- IOS (coming soon)
View the Using Titanium Modules document for instructions on getting started with using this module in your application.
Edit the modules section of your tiapp.xml file to include this module:
<modules>
<module platform="android">io.kandy</module>
</modules>
Then, change $PACKAGE_NAME
variable in timodule.xml
to your package name.
To access this module from JavaScript, you would do the following (recommended):
var Kandy = require('io.kandy');
The "Kandy" variable is now a reference to the Module object.
Then, you have to initialize KandyAPI
to use in the values/kandy_config.xml
of the module
<resources>
<string name="kandy_api_key">Your api key here.</string>
<string name="kandy_api_secret">Your secret key here.</string>
</resources>
or at run-time
Kandy.setKey("your api key here", "your secret key here");
For usage see the code in the example folder.
Documentation can be found here.