Skip to content

rebootcode/JavaSDK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Introduction

Join the chat at https://gitter.im/cloudboost/help Build Status

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

JAR Usage

//Add cloudboost java sdk jar file in your project
import io.cloudboost.*;

Sample Code

// 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
		}
	}
});

#### Documentation

Visit the CloudBoost Docs for documentation.

About

CloudBoost SDK for Java and Android

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages