Code Monkey home page Code Monkey logo

oauthconsumer's Introduction

This is an iPhone ready version of:
http://oauth.googlecode.com/svn/code/obj-c/OAuthConsumer/

"iPhone ready" simply means you just need to add the files to Xcode, and import "OAuthConsumer.h".

If you're rolling with the iPhone:

1) Be sure to add Security.framework.
2) Include libxml2.dylib in your frameworks.  You also need to add a
build property to the project -- "header search paths" needs to 
include "$SDKROOT/usr/include/libxml2" with "Recursive" checked.

Be sure to include sys/types.h.

Questions?  E-mail me.  jonathan at my initials (jdg) dot net.

oauthconsumer's People

Contributors

adamcohenrose avatar adamjernst avatar blynch avatar fxtentacle avatar jdg avatar radiantcapsule avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

oauthconsumer's Issues

problem with importing

If I add oauthconsumer a project to get errors in NSZone NSObject
what could be the problem ???

Issue with POST and query string?

I'm getting an invalid signature when I try to use OAMutableURLRequest to do a POST with a query parameter in the uri (?foo=bar). It works fine if I remove the parameter and it works fine for GET with parameters.

Anyone have any ideas?

Thanks.

read Extra params

Hello you have options to set extra params (- (void)setParameters:(NSArray *)parameters),
but you read it only in - (NSString *)_signatureBaseString

you need add in OAMutableURLRequest.m in - (void)prepare that code for correct request

NSArray *parameters = [self parameters];
    for (OARequestParameter *param in parameters) {
        [chunks addObject:[param URLEncodedNameValuePair]];
    }

now work Yahoo, Deliciou, LinkedIn, etc

Conflicting types for 'time' when linking with CoreMedia

This is happening in the "OAMutableURLRequest.m" file calling:

(void)_generateTimestamp { timestamp = [[NSString stringWithFormat:@"%ld", time(NULL)] retain]; }
The 'time' variable doesn't know if it should link to the sys/time or to the CorMedia time.
This can be prevented in two ways:

Declaring "time_t time(time_t *tloc);" at the top
or creating a time structure in the function

PLEASE CHANGE

NSASCIIStringEncoding in parameters function in NSMutableURLRequest+Parameters.m causing crash when contains unicode data?

Put any Unicode string in OAMutableURLRequest httpbody data,the library will crash in this function call.
NSArray *parameters = [self parameters] in the following code.

  • (NSString *)_signatureBaseString {
    // OAuth Spec, Section 9.1.1 "Normalize Request Parameters"
    // build a sorted array of both request parameters and OAuth header parameters
    NSDictionary *tokenParameters = [token parameters];
    // 6 being the number of OAuth params in the Signature Base String
    NSArray *parameters = [self parameters];

I checked and found NSASCIIStringEncoding is being used in two places in the following functions in this file NSMutableURLRequest+Parameters.m

  • (NSArray *)parameters {
    ...
  • (void)setHTTPBodyWithString:(NSString *)body {
    ...

. I think they should be NSUTF8StringEncoding. I changed and tested. no crash anymore.

timestamp issue

Hi,

just updated to the latest code version of oauthconsumer, I still face an issue with under iOS 5.

I'm using your cool package to interface with Photobucket. I released an App 'Qbinator' early this year, which worked well all-time. However with iOS 5 the App returns with an error from Photobucket. As far as I know, this error is created by Photobucket if the timestamp is missing or wrong.

The same happens if I run the App in the simulator on an iOS 5 device. If however I select iOS 3/4 as target device in the simulator it works perfect as always.

Can anyone help please?

Thx ia,

Ekki

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.