-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLinkedInHelperRequest.h
More file actions
executable file
·29 lines (22 loc) · 934 Bytes
/
LinkedInHelperRequest.h
File metadata and controls
executable file
·29 lines (22 loc) · 934 Bytes
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
//
// LinkedInHelperRequest.h
// Junction
//
// Created by Bobby Ren on 1/15/13.
//
//
#import "OAMutableURLRequest.h"
#import "OAuthConsumer.h"
#import "OAuthLoginView.h"
@interface LinkedInHelperRequest:NSObject
// LinkedInHelper success and failure blocks
typedef void (^lhSuccessBlock)(BOOL, NSData *);
typedef void (^lhFailureBlock)(BOOL, NSError *);
@property (nonatomic, strong) lhSuccessBlock successBlock;
@property (nonatomic, strong) lhFailureBlock failureBlock;
@property (nonatomic, strong) NSString * userID;
@property (nonatomic, strong) OAConsumer * storedOAuthConsumer;
@property (nonatomic, strong) OAToken * storedOAuthAccessToken;
-(id)initWithOAuthConsumer:(OAConsumer*)oauthConsumer andOAuthAccessToken:(OAToken*)oauthAccessToken;
- (void)doRequestForEndpoint:(NSString*)endpoint withParams:(NSMutableDictionary*)params withBlockForSuccess:(lhSuccessBlock)success failure:(lhFailureBlock)failure;
@end