I'm trying to build my NSMutableDictionary to send to a request using the AFNetworking framework, but it seems that I'm quite confused about how to do it properly.
Here's what the server is expecting
{
"do":"timeline",
"what":"posting",
"session":"",
"data":{
"status_timeline":"",
"with_timeline":"",
"location_timeline":"",
"category_timeline":"",
"privacy_timeline":""
}
and I've tried like this
NSMutableDictionary *dict = [[NSMutableDictionary alloc]init];
[dict setValue:@"timeline" forKey:@"do"];
[dict setValue:@"posting" forKey:@"what"];
[dict setValue:session forKey:@"session"];
NSLog(@"Session %@", [dict valueForKey:@"session"]);
I hope someone can help me thank's