Skip to content

visualitysoftware/swift-sdk

Repository files navigation

CloudBoost Swift SDK

CI Status Version License Platform Contact

Installation

CloudBoost is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "CloudBoost"

install by:

pod install

close currently open project and open the project in .xcworkspace

add CloudBoost to your project screen shot 2016-05-11 at 2 04 26 pm

Usage:

import CloudBoost in your swift file

import CloudBoost

Using CloudBoost in code

// Creating a new CloudApp with your appID and appKey
let app = CloudApp(appID: "Your-app-ID", appKey: "Your-app-key")

// Enable Logging, defaults to false
app.setIsLogging(true)

// Create a new table
let obj = CloudObject(tableName: "Student")

// Set attributes
obj.set("name", value: "Randhir")
obj.set("marks", value: 99)

// Save the table, with a callback. response is in the form of CloudBoostResponse
obj.save({ response in
    response.log()
})

Author

Randhir Singh, [email protected]

License

CloudBoost is available under the MIT license. See the LICENSE file for more info.

Packages

No packages published

Languages