Skip to content

chriskedz/LapseKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LapseKit

Simple Objective-C client for working with the Everlapse API.

LapseKit is tested on iOS 5 and requires ARC. It relies on AFNetworking. Released under the MIT license.

Usage

You can use EVLHTTPClient as is, or subclass it to provide custom behavior. Everlapse itself uses an internal subclass of EVLHTTPClient to provide Core Data and other helpers.

EVLHTTPClient provides a sharedClient method that you can use to access a standard singleton instance of the class.

# import "EVLHTTPClient.h"

@implementation MyViewController

- (void)viewWillAppear:(BOOL)animated {
  [super viewWillAppear:animated];
  [[EVLHTTPClient sharedClient] getUserWithID:self.userID success:^(AFHTTPRequestOperation *operation, id responseObject) {
    self.userNameLabel.text = [NSString stringWithFormat:@"@%@", responseObject[@"username"]];
    self.nameLabel.text = [NSString stringWithFormat:@"@ @", responseObject[@"given_name"], responseObject[@"family_name"]];
  } failure:nil];
}

@end

See the documentation for more usage and examples.

Installation

Installing LapseKit with CocoaPods is highly recommended. Simply add pod 'LapseKit' to your Podfile. Otherwise, you will need to install AFNetworking and add EVLHTTPClient.h and EVLHTTPClient.m to your project.

About

Everlapse SDK for iOS

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors