how to pass json dictionary as parameter afnetworking post -
I have searched many links which post Jason Dictionary as a parameter in the foreground. I have converted the Jason format string to a dictionary, unfortunately the nsdictionary value as the previous post parameter is allowed only in the server side Jason format dictionary is acceptable. My code is as follows, Please suggest me any way in Final Networking. Thanks
FHttpRequest Operation Manager * Manager = [FHTMLTPAVEST Operation Manager Manager]; Manager.responseSerializer.acceptableContentTypes = [NSSet set with object: @ "Application / Jason", zero]; Manager.requestSerializer = [AFJSOnUrUt Certilizer Serializer]; Manager.responseSerializer = [AFJSONResponseSerializer serializer]; NSDictionary * params = @ {@ "email": txt_email.text, @ "password": txt_password.text, @ "platform": @ "iphone"}; NSString * str_url = [NSString stringWithFormat: @ "% @ do_signup", base URLlogin]; [Manager post: Stormer parameter: Parameters success: ^ (FHttpRequest operation * Operation, ID response object) {
Comments
Post a Comment