The code you posted should not work at all.
> NSMutableDictionary* params = [[NSMutableDictionary alloc]
> initWithObjectsAndKeys:@"Yeah!", @"body",@"0",nil];
Ok.. we got @"Yeah!" for the key @"body" but what key is @"0" supposed
to be the value for for?
Also it's not possible to do nested dictionaries. So what you really
wanna do is something like this
NSDictionary* params = [NSDictionary
dictionaryWithObjectsAndKeys:@"Hell yeah!", @"comment[body]" ,
nil];
[api performMethod:@"POST"
onResource:@"/tracks/ [ your-track-id ] /comments"
withParameters:params
context:nil];
Let me know if this works for you.
Ullrich
Hey,
The code you posted should not work at all.
Ok.. we got @"Yeah!" for the key @"body" but what key is @"0" supposed
> NSMutableDictionary* params = [[NSMutableDictionary alloc]
> initWithObjectsAndKeys:@"Yeah!", @"body",@"0",nil];
to be the value for for?
Also it's not possible to do nested dictionaries. So what you really
wanna do is something like this
NSDictionary* params = [NSDictionary
dictionaryWithObjectsAndKeys:@"Hell yeah!", @"comment[body]" ,
nil];
[api performMethod:@"POST"
onResource:@"/tracks/ [ your-track-id ] /comments"
withParameters:params
context:nil];
Let me know if this works for you.
Ullrich