TWRCouchDBClient 0.1.0

TWRCouchDBClient 0.1.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Alexander Edge.



  • 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.

Example Usage

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...
}];

Contact

Alexander Edge

License

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