jdg / oauthconsumer Goto Github PK
View Code? Open in Web Editor NEWAn iPhone ready, Objective-C implementation of an OAuth consumer.
An iPhone ready, Objective-C implementation of an OAuth consumer.
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.
If I add oauthconsumer a project to get errors in NSZone NSObject
what could be the problem ???
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.
How does this differ from https://github.com/rentzsch/OAuthConsumer ?
The most recent commit to change to explicit type sizes won't build with the most recent iOS SDK due to it not being able to recognize u_int8_t (among others)
Are there any flags that we need for it to recognize these symbols?
Needs to be recompiled for XCode 4.5/iPhone 5
I've just pulled the latest commit, and since the change from unsigned long and unsigned char to u_int32_t and u_int8_t, I get build errors of undefined types. Am I missing a project setting?
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
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
Put any Unicode string in OAMutableURLRequest httpbody data,the library will crash in this function call.
NSArray *parameters = [self parameters] in the following code.
I checked and found NSASCIIStringEncoding is being used in two places in the following functions in this file NSMutableURLRequest+Parameters.m
. I think they should be NSUTF8StringEncoding. I changed and tested. no crash anymore.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.