= Adding an answer to a specific question =
== Request Format / requires [OAuth_Headers OAuth HTTP Authorization Headers] ==
{{{
http://api.praized.com/{community_slug}/questions/{question_pid}/answers.{format}?&api_key={your api key}
}}}
== POST Body ==
=== POST Text Format ===
The content of the answer
format : string
ex: The best places to find figurines of pirates
The pids of the merchant
format : comma separated string or pids
ex: 642b7b7b0487607f738547444489d9896c,92696487d595b966fda311fa77e2d6d598
=== POST XML Format ===
{{{
The best places to find figurines of pirates
642b7b7b0487607f738547444489d9896c
92696487d595b966fda311fa77e2d6d598
}}}
== Response Format ==
=== XML ===
{{{
Hub
http://praized.com/
local-praized
praized
http://localhost
04c4c649b8a8ee7e56644163a1a58d85
http://praized.com/users/php
2007-01-07T14:29:45Z
0
2007-01-07T14:29:30Z
0
0
http://praized.com/images/generic/default_avatar_40x40.png
http://praized.com/images/generic/default_avatar_70x70.png
http://praized.com/images/generic/default_avatar.png
0
Pier-Hugues
php
Pellerin
php
2007-01-07T14:29:30Z
http://praized.com/answers/1bc0a59475afa2fef315c8c419725ea1
1bc0a59475afa2fef315c8c419725ea1
2009-08-26T17:34:28Z
a0000000000000000000000000000001
http://praized.com/questions/answer-to-the-ultimate-question-of-life-the-universe-and-everything
8e9bd71fdfdad64fdb3d366ff2b67f77
http://praized.com/users/francois
2007-10-26T13:18:51Z
1
2007-10-26T13:18:51Z
0
0
http://praized.com/images/generic/default_avatar_40x40.png
http://praized.com/images/generic/default_avatar_70x70.png
http://praized.com/images/generic/default_avatar.png
2
francois
francois
2007-10-26T13:18:51Z
false
2009-08-25T19:37:44Z
4
Answer to the Ultimate Question of Life, the Universe, and Everything.
praized
local-praized
Hub
http://praized.com/
http://praized.com/
true
2009-08-25T15:37:44Z
mon super commentaire avec des structured merchants
praized
local-praized
Hub
http://praized.com/
http://praized.com/
642b7b7b0487607f738547444489d9896c,92696487d595b966fda311fa77e2d6d598
2009-08-26T17:34:28Z
}}}
=== JSON ===
{{{
{
"praized": {
"community": {
"type": "Hub",
"home_url": "http://praized.com/",
"slug": "local-praized",
"name": "praized",
"base_url": "http://localhost"
},
"answer": {
"user": {
"pid": "04c4c649b8a8ee7e56644163a1a58d85",
"permalink": "http://praized.com/users/php",
"activated_at": "2007/01/07 14:29:45 +0000",
"postal_code": null,
"favorite_count": "0",
"updated_at": "2007/01/07 14:29:30 +0000",
"comment_count": "0",
"gender": null,
"about": null,
"friend_count": "0",
"avatar": {
"small": "http://praized.com/images/generic/default_avatar_40x40.png",
"medium": "http://praized.com/images/generic/default_avatar_70x70.png",
"large": "http://praized.com/images/generic/default_avatar.png"
},
"vote_count": "0",
"first_name": "Pier-Hugues",
"display_name": "php",
"date_of_birth": null,
"last_name": "Pellerin",
"claim_to_fame": null,
"login": "php",
"created_at": "2007/01/07 14:29:30 +0000"
},
"permalink": "http://praized.com/answers/af618fdddc454d55895214764bfb0e26",
"pid": "af618fdddc454d55895214764bfb0e26",
"updated_at": "2009/08/26 17:35:41 +0000",
"merchants": [],
"question": {
"where": null,
"pid": "a0000000000000000000000000000001",
"permalink": "http://praized.com/questions/answer-to-the-ultimate-question-of-life-the-universe-and-everything",
"user": {
"pid": "8e9bd71fdfdad64fdb3d366ff2b67f77",
"permalink": "http://praized.com/users/francois",
"activated_at": "2007/10/26 13:18:51 +0000",
"postal_code": null,
"favorite_count": "1",
"updated_at": "2007/10/26 13:18:51 +0000",
"comment_count": "0",
"gender": null,
"about": null,
"friend_count": "0",
"avatar": {
"small": "http://praized.com/images/generic/default_avatar_40x40.png",
"medium": "http://praized.com/images/generic/default_avatar_70x70.png",
"large": "http://praized.com/images/generic/default_avatar.png"
},
"vote_count": "2",
"first_name": null,
"display_name": "francois",
"date_of_birth": null,
"last_name": null,
"claim_to_fame": null,
"login": "francois",
"created_at": "2007/10/26 13:18:51 +0000"
},
"notify_by_twitter": false,
"updated_at": "2009/08/25 19:37:44 +0000",
"adjective": null,
"answer_count": "5",
"content": "Answer to the Ultimate Question of Life, the Universe, and Everything.",
"what": null,
"community": {
"name": "praized",
"slug": "local-praized",
"type": "Hub",
"base_url": "http://praized.com/",
"home_url": "http://praized.com/"
},
"notify_by_email": true,
"created_at": "2009/08/25 15:37:44 +0000"
},
"content": "mon super commentaire avec des structured merchants",
"community": {
"name": "praized",
"slug": "local-praized",
"type": "Hub",
"base_url": "http://praized.com/",
"home_url": "http://praized.com/"
},
"merchants_pids": "642b7b7b0487607f738547444489d9896c,92696487d595b966fda311fa77e2d6d598",
"created_at": "2009/08/26 17:35:41 +0000"
}
}
}
}}}