Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

wssand44/AFOAuth1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AFOAuth1

[![Version 0.0.1] [![Platform iOS7]

Usage

To run the example project; clone the repo, and run pod install from the Example directory first.

    KDHTTPRequestSerializer *reqSerializer = [KDHTTPRequestSerializer serializer];
    [reqSerializer setUseOAuth:YES];
    self.manager.responseSerializer = [AFHTTPResponseSerializer serializer];
    self.manager.requestSerializer = reqSerializer;
    [self.manager POST:@"http:/example/oauth/access_token" parameters:nil success:^(NSURLSessionDataTask *task, id responseObject) {
        NSLog(@"%@", responseObject);
    } failure:^(NSURLSessionDataTask *task, NSError *error) {
        NSLog(@"%@", error);
    }];

Requirements

Installation

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

pod "AFOAuth1", '~>0.0.1'

Author

Song.Wang, [email protected]

License

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

About

OAuth1 based on AFNetworking 2.2.0

Resources

License

Stars

Watchers

Forks

Packages

No packages published