I have to access Rest api in iOS and i am using RestKit for that. The server only accept POST request and send response in JSON. Just help me to call the login api using RestKit. The url is like:
http://mobile.domian.co/apiversion/user/login
and Post parametersare:
app_key(string),signature(string),timestamp(dateTime),user_id(string),password(string).
available response representations
{
"status": "0",
"result": {
"error_code": "1",
"error_msg": "Login failed. Wrong username or password"
}
{
“status”: “1”,
“result”: {
“data”: {
“avatar”: “”,
“email”: “sd.p@clozette.co”,
“user_name”: “sd”,
“newsletter”: “1”,
“bio_data”: “About myself”,
“mth_dob”: “1”,
“yr_dob”: “1981”,
“hometown”: “”,
“dob_priv”: “1”,
“hometown_priv”: “1”,
“bio_data_priv”: “1”,
“block_comment_notification”:”0”,
“block_liked_notification”:”0”,
}
Please help me. Thanks in advance.
Here is the Answer(you should convert your datetime to string) :-