@interface CulpaProfessor : NSObject
// declare properties of the class (variables you can access with each
// object) here
@property NSString *firstName;
// declare the public methods here
-(BOOL) checkProfessorMatch:(NSString *)matchQuery;
@end
NSString *requestString = @"https://s3.amazonaws.com/culpa/professors.json";
NSURL *url = [NSURL URLWithString:requestString];
NSURLRequest *req = [NSURLRequest requestWithURL:url];
NSURLSessionConfiguration *config =
[NSURLSessionConfiguration defaultSessionConfiguration];
NSURLSession *session = [NSURLSession sessionWithConfiguration:config
delegate:nil
delegateQueue:nil];
NSURLSessionDataTask *dataTask =
[session dataTaskWithRequest:req
completionHandler:
^(NSData *data, NSURLResponse *response, NSError *error) {
// do stuff with data}];
[dataTask resume];