Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions Simple-OAuth1/Simple-OAuth1/LinkedInOAuth1Controller.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//
// OAuth1Controller.h
// Simple-OAuth1
//
// Created by Christian Hansen on 02/12/12.
// Copyright (c) 2012 Christian-Hansen. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface LinkedInOAuth1Controller : NSObject <UIWebViewDelegate>

- (void)loginWithWebView:(UIWebView *)webWiew
completion:(void (^)(NSDictionary *oauthTokens, NSError *error))completion;

- (void)requestAccessToken:(NSString *)oauth_token_secret
oauthToken:(NSString *)oauth_token
oauthVerifier:(NSString *)oauth_verifier
completion:(void (^)(NSError *error, NSDictionary *responseParams))completion;

+ (NSURLRequest *)preparedRequestForPath:(NSString *)path
parameters:(NSDictionary *)parameters
HTTPmethod:(NSString *)method
oauthToken:(NSString *)oauth_token
oauthSecret:(NSString *)oauth_token_secret;

@end
Loading