Sorry, my fault for not being clear.
I hoped that the postPath you already had would give you a castable responseObject, without using the AFJSONRequestOperation.

On Wed, Mar 13, 2013 at 11:54 PM, stojce <notifications@github.com> wrote:

>> +
>> +#pragma mark - Sign in
>> ++ (void)signInWithTwitterData:(NSDictionary *)twitterData
>> +              andCompletition:(void(^)(NSDictionary *json, NSError *error))completion
>> +{
>> +    
>> +    NSURL *apiUrl = [NSURL URLWithString:kApiURL];
>> +    
>> +    AFHTTPClient *httpClient = [[AFHTTPClient alloc] initWithBaseURL:apiUrl];
>> +    
>> +    [httpClient postPath:@"signin"
>> +             parameters:twitterData
>> +                success:^(AFHTTPRequestOperation *operation, id responseObject) {
>> +                    
>> +                    NSError *error;
>> +                    NSDictionary *jsonDictionary = [NSJSONSerialization JSONObjectWithData:responseObject
> Tested, it doesn't work. The ```AFJSONRequestOperation``` method returns parsed json object, but that method doesn't set user-agent which is required on this call.
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/worklist/base8-ios/pull/1/files#r3368811