Latest 1.0.3
Homepage https://github.com/lborsato/oAuthConsumer-pod
License MIT
Platforms ios 7.0, requires ARC
Authors

CI Status
Version
License
Platform

Usage

There are myriad examples of OAuthConsumer usage available on the web.

Requirements

Installation

OAuthConsumer is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "OAuthConsumer"

Author

Larry Borsato, [email protected]

License

OAuthConsumer is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "OAuthConsumer",
    "version": "1.0.3",
    "summary": "OAuthConsumer is an iPhone-ready iOS 8.0 compatible, ARC-supported OAuth implementation.",
    "description": "#OAuthConsumernnnThis is an iPhone ready version of:nhttp://oauth.googlecode.com/svn/code/obj-c/OAuthConsumer by Jon Crosby.nnThis version has been updated for iOS 8.0 and to use Automatic Reference Counting (ARC). You will need to add **Security.framework**.nn"iPhone ready" simply means you just need to add the files to Xcode, and import "OAuthConsumer.h".nnOADataFetcher now also includes the ability to use blocks in addition to delegates as seen in this example:nntOAConsumer *consumer = [[OAConsumer alloc] initWithKey:self.consumerKey secret:self.consumerSecret];ntOAToken *token = [[OAToken alloc] initWithKey:self.accessToken secret:self.accessTokenSecret];ntNSURL* url = [NSURL URLWithString:urlString];ntOAMutableURLRequest* request = [[OAMutableURLRequest alloc] initWithURL:url consumer:consumer token:token realm:nil signatureProvider:nil];nt[request setHTTPMethod:@"POST"];ntNSMutableArray *params = [[NSMutableArray alloc] init];ntfor ( NSString *key in [postParams allKeys] )nt{nttOARequestParameter* param = [[OARequestParameter alloc] initWithName:key value:postParams[key]];ntt[params addObject:param];nt}ntif ( [params count] > 0 )ntt[request setParameters:params];ntOADataFetcher* dataFetcher = [[OADataFetcher alloc] init];nt[dataFetcher performRequest:requestntttttwithHandler:^(OAServiceTicket *ticket, NSData *data, NSError *error) {ntttt   if ( !error ) {nttttt   NSLog(@"didPost:=%@", [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]);nttttt   [self updateStatusCompleteWithStatus:SCUpdateSuccessful data:data error:nil];ntttt   }ntttt   elsentttt   {nttttt   [self updateStatusCompleteWithStatus:SCUpdateFailed data:data error:error];ntttt   }nttt   }];nnnThis is a work in progress. Please feel free to contact me at larry [at] larryborsato [dot] com.n",
    "homepage": "https://github.com/lborsato/oAuthConsumer-pod",
    "license": "MIT",
    "authors": {
        "Larry Borsato": "[email protected]"
    },
    "source": {
        "git": "https://github.com/lborsato/oAuthConsumer-pod.git",
        "tag": "1.0.3"
    },
    "social_media_url": "https://twitter.com/lborsato",
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Classes/*",
    "resource_bundles": {
        "OAuthConsumer": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This