TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Alexander Edge.
TWRCouchDBClient is an AFHTTPSessionManager subclass for interacting with a CouchDB API.
Caution: This code is still in its early stages of development, so exercise caution when incorporating this into production code.
TWRCouchDBClient *client = [[TWRCouchDBClient alloc] initWithBaseURL:@"http://127.0.0.1:5984" sessionConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration]];
[client changesSince:@"0" limit:100 descending:NO feed:TWRSyncChangesFeedTypeNormal heartbeat:60000 timeout:60000 filter:nil includeDocs:YES style:TWRSyncChangesFeedStyleAllDocs completion:^(NSDictionary *changes, NSError *error) {
if (error) {
NSLog(@"Error getting changes: %@",[error localizedDescription]);
return;
}
// do something with changes feed...
}];
Alexander Edge
TWRCouchDBClient is available under the MIT license. See the LICENSE file for more info.