Hello I am trying to implement Readability API in my app, but all I get is status code 500 - "unknown problem". My response body is a html page saying "Page unavalaivable".
I am using RestKit.
Here is how I try to connect:
-(void)sendRequests
{
NSDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys:
@"myconsumerkey", @"oauth_consumer_key",
[NSString stringWithFormat:@"%f", [[NSDate date] timeIntervalSince1970]], @"oauth_timestamp",
[self uuid], @"oauth_nonce",
@"HMAC-SHA1", @"oauth_signature_method",
@"mysecretkey", @"oauth_consumer_secret",
@"1.0",@"oauth_version",
@"username", @"x_auth_username",
@"password", @"x_auth_password",
@"client_auth", @"x_auth_mode", nil];
RKClient *client = [RKClient clientWithBaseURL:[NSURL URLWithString:@"https://www.readability.com/api/rest/v1"]];
[client post:@"/oauth/access_token" params:params delegate:self];
}
Thank you a lot!