Coder Social home page Coder Social logo

cocoa-oauth's Introduction

I have forked this library so I could (a) Upgrade it to ARC compatibility (b) modify it for use with MKNetworkKit and (c) Add a helper dictionary category (using some of the same source) for producing OAUTH 1.0 compatbile dictionaries for use with MKNetworkKit.

I have modified the GCOAuth.h and .m files to include ARC compatibility, appropriate __bridge casting and expose some previously "private" methods which are useful to my category extension.

NOTE: For use with MKNetworkKit, delete the included NSData+Base64 files from the project and instead add the include (from MKNetworkKit) of "NSData+MKBase64.h" into the header of the NSDictionary+OAuthParameters.

====================================================================================

Example Useage:

NSURL *url = [NSURL URLWithString:@"api.yelp.com/v2"];

NSDictionary oauthDictionary = [NSDictionary dictionaryWithOAuthParametersUsingConsumerKey:@"consumerKey****" consumerSecret:@"consumerSecret******" tokenKey:@"tokenKey*****" tokenSecret:@"tokenSecret*****" withBaseURL:url];

NSLog(@"%@", [oauthDictionary description]);

====================================================================================

Below this line are necessary installation instructions from the pre-forked ReadMe:

Cocoa library for creating signed requests according to the OAuth 1.0a standard.

Usage is fully documented in the header.

You will need to make your Xcode project link against CommonCrypto. Otherwise just drag and drop. Or better yet, use git submodules:

git submodule add https://github.com/guicocoa/cocoa-oauth.git

Forked from GCOAUTH

cocoa-oauth's People

Contributors

calebd avatar mxcl avatar pjk25 avatar blakewatters avatar nrj avatar rexsaurus avatar

Watchers

Rex St. John avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.