//
//  SCAPIService.h
//  SelfConference
//
//  Created by Jeff Burt on 5/11/15.
//  Copyright (c) 2015 Self Conference. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^SCAPIServiceResponseObjectWithErrorBlock)(id responseObject, NSError *error);

@interface SCAPIService : NSObject

/** Makes a GET request to the given 'urlString' on the API */
+ (void)getUrlString:(NSString *)urlString
     completionBlock:(SCAPIServiceResponseObjectWithErrorBlock)completionBlock;

/** Makes a POST request to the given 'urlString' on the API */
+ (void)postUrlString:(NSString *)urlString
           parameters:(NSDictionary *)parameters
      completionBlock:(SCAPIServiceResponseObjectWithErrorBlock)completionBlock;

@end
