I’m doing an application that should work with the server.
Need to be authorized on the server through the program using the username and password.
I need to make a request to the server with the line:
{“login”: “mad_fashist”, “password”: “eqeeuq313371”, “method”: “authentificator”}
The string must be in Json.
In response, I should get a line if authentication fails:
{“validated”: “false”, “kuid”: “”, “sid”: “”, “uid”: “”}
And if authentication is passed:
{“validated”:”true”,”kuid”:”6″,”sid”:”834fe9b4626502bf9ff23485a408ac40″,”uid”:”69″}
The question is how to send and receive all of the above?
Use SBJson framework. and do smth like:
It’s your back end who should define how the response in Json will look like