- Deserializes Clubhouse objects into distinct Swift Structs
- Uses Swift Enums to safely handle and constrain optional params
- Built on top of Alamofire and SwiftyJSON
- Maps all documented Clubhouse.io API calls
- Register for a Clubhouse API Token (Login to Clubhouse, Settings -> API Tokens)
- In your AppDelegate:
import clubhouse_ios_api
func application(application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool
{
ClubhouseAPI.configure("{ENTER-TOKEN-HERE}")
return true
}
clubhouse-ios-api is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "clubhouse-ios-api"
ClubhouseAPI.sharedInstance.searchStories([StoryParam.EpicId(123)], success: { stories in
self.stories = stories.sort { $0.name?.lowercaseString < $1.name?.lowercaseString }
self.tableView.reloadData()
}, failure: { error in
print(error)
})
clubhouse-ios-api is available under the MIT license. See the LICENSE file for more info.