-
Notifications
You must be signed in to change notification settings - Fork 3
/
BeesClientBase.h
36 lines (28 loc) · 1.01 KB
/
BeesClientBase.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
// BeesClientBase.h
// HudsonMobile
//
// Created by simone on 5/28/11.
// Copyright 2011 LMIT ltd. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "SimpleHTTPGetter.h"
#import "IWSDataReceiver.h"
@interface BeesClientBase : NSObject {
NSString* format;
NSString* serverApiUrl;
NSString* api_key;
NSString* secret;
NSString* version;
NSString* sigVersion;
}
-(id)initWithApiUrl:(NSString*)_serverApiUrl andApiKey:(NSString*)_apiKey andSecret:(NSString*)_secret andFormat:(NSString*)_format andVersion:(NSString*)_version;
-(NSString*) getRequestUrl:(NSString*) method andMethodParams:(NSDictionary*)params;
-(NSDictionary*) defaultParameters;
-(NSString*) apiUrl:(NSString*) method;
-(NSString*) calculateSignature:(NSDictionary*) entries;
-(NSString*) getSignature:(NSString*) data :(NSString*) secret;
-(NSString*) md5:(NSString*) message;
-(void) executeRequest:(NSString*) url withReceiver:(id<IWSDataReceiver>)dateReceiver;
-(NSString*) calculateSignature:(NSDictionary*) entries;
@end