= Adding a question = == Request Format / requires [OAuth_Headers OAuth HTTP Authorization Headers] == {{{ http://api.praized.com/{community_slug}/questions.{format}?api_key={your api key} }}} == POST Body == The POST body can be in a text format or an XML format. === POST Text Format === The content is the question format : string ex : How to get more ninja? The switch_toggle_status is what kind of question is send. format : string ex: complex or simple it influence the format of the request. The where is the city (only for complex question) format : string ex: Louiseville The what is what you need (only for complex question) format : string ex: Pirate The adjective of the request (only for complex question) format : string ex: good The broadcast service is where you want to publish your question format : array ex: TwitterService, LaconicaService, FriendFeedService, FacebookService, PingFmService The third is type of the method used (HTTP verb) format : string value : post === POST XML Format === Simple question format {{{ Where are my keys ?? Seriously I looked everywhere simple }}} Strutured question format {{{ Montreal Rails ninja good complex }}} Simple question format with broadcast services (should be set in the profile) {{{ Where can I find the best poutine in Montreal? simple TwitterService LaconicaService FriendFeedService FacebookService PingFmService }}} == Response Format == === XML === {{{ Hub http://praized.com/ local-praized praized http://localhost 1 10 1 6 simple 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/questions/find-best-poutine-montreal 1e0ef819f9bc2853c3afe7c55e081579 2009-08-26T16:51:52Z false 0 Where can I find the best poutine in Montreal? praized local-praized Hub http://localhost http://praized.com/ 2009-08-26T16:51:52Z true }}} === JSON === {{{ { "praized": { "community": { "type": "Hub", "home_url": "http://praized.com/", "slug": "local-praized", "name": "praized", "base_url": "http://localhost" }, "question": { "switch_toggle_status": "simple", "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/questions/find-best-poutine-montreal-2", "pid": "7eb2e437967269781dab0bdc506cadc4", "where": null, "updated_at": "2009/08/26 16:52:59 +0000", "notify_by_twitter": false, "adjective": null, "answer_count": "0", "content": "Where can I find the best poutine in Montreal?", "what": null, "community": { "name": "praized", "slug": "local-praized", "type": "Hub", "base_url": "http://localhost", "home_url": "http://praized.com/" }, "created_at": "2009/08/26 16:52:59 +0000", "notify_by_email": true }, } } }}}