#Introduction
This is the Java SDK for CloudBoost. It is available as a JAR on Git and as a maven dependency. If you want to have a look into documentation, you can check them out here : https://tutorials.cloudboost.io and API reference is available here : https://docs.cloudboost.io
###Dependencies
####The following dependencies are included in the repo in the libs
folder. Add them to your project path to be able to use the SDK.
- Javasdk for cloudboost Javasdk-1.0.1.jar
- Socket-client.jar
- Okhttp-2.4.0.jar
- Okhttp-ws-2.4.0.jar
- Okio-1.4.0.jar
//Add cloudboost java sdk jar file in your project
import java.cloudboost.*;
// AppID and AppKey are your App ID and key of the application created in CloudBoost Dashboard.
//Init your Application
CloudApp.init("YourAppId","YourAppKey");
//Data Storage : Create a CloudObject of type 'Custom' (Note: You need to create a table 'Custom' on CloudBoost Dashboard)
CloudObject obj = new CloudObject("Custom");
//Set the property 'name' (Note: Create a column 'name' of type text on CloudBoost Dashboard)
obj.set("name","CloudBoost");
//Save the object
obj.save(new CloudObjectCallback(){
@Override
public void done(CloudObject object, CloudException err) {
if(err != null){
//save operation failed
}
if(object != null){
//object saved successfully
}
}
});
Visit the CloudBoost Docs for documentation.