Skip to content

beobungbu/swift-sdk

 
 

Repository files navigation

CloudBoost Swift SDK

CI Status Version License Platform Contact

IMPORTANT: Swift SDK is now community supported. You're most welcome to contribute to this SDK and implement new features and fix bugs. We still review code and accept PR's. Swift SDK questions on StackOverflow will be answered by the community and not by us, so please expect couple of days for your questions to be answered. Read full announcement here.

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.

About

CloudBoost.io SDK in Swift.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 99.5%
  • Other 0.5%