= Voting for a merchant = == Request Format / requires [OAuth_Headers OAuth HTTP Authorization Headers] == This is a http POST Request {{{ http://api.praized.com/{community_slug}/merchants/{merchant_pid}/votes.{format}?api_key={your api key} }}} == Arguments == === {merchant_pid} === The unique identifier for a merchant. format : string ex : 96423266cd5145552decb67454b13e4e == POST Body == ==== POST Text Format ==== * format : string (neg | pos) neg for a negative vote and pos for a positive vote ==== POST XML Format ==== Negative Vote : {{{ neg }}} Positive Vote : {{{ pos }}} == Response Format == The response is very similar to a GET request === XML Format === {{{ http://api-tribe.com/praized/ apitribe Api Tribe http://api-tribe.com/ fprefect neg http://api-tribe.com/praized/places/ca/quebec/montreal/sushi-restaurant/h0h0h0 3140580f18afeea8e7665f5bf4e1191d Sushi restaurant 2008-09-08T00:29:01Z http://przd.com/nIsdf-93 1 1 0 0 1 2 http://ca.stats.praized.com/ping?t=1221085463.36841 sushi fast-food 2 (514)5555555 Montreal MTL Montreal H0H0H0 43.506555 Quebec Canada CA Canada 42 du xxxxxxxx -71.570433 2008-08-05T20:01:58Z }}} === JSON === {{{ { "praized":{ "community":{ "base_url":"http://api-tribe.com/praized/", "slug":"apitribe", "name":"Api Tribe", "home_url":"http://api-tribe.com/" }, "vote":{ "user":{ "login":"fprefect" }, "rating":"pos", "merchant":{ "permalink":"http://api-tribe.com/praized/places/ca/quebec/montreal/sushi-restaurant/h0h0h0", "pid":"3140580f18afeea8e7665f5bf4e1191d", "name":"Sushi restaurant", "updated_at":"2008/08/05 20:01:58 +0000", "short_url":"http://przd.com/nIasdl-93", "favorite_count":"0", "sponsored_links":[ ], "votes":{ "neg_count":"0", "score":"100", "pos_count":"1", "count":"1" }, "tag_count":"1", "tags":[ { "name":"sushi" } ], "stat_links":[ { "url":"http://ca.stats.praized.com/ping?t=1220831140.37964" } ], "url":null, "comment_count":"0", "business_hours":null, "description":null, "fax":null, "phone":"(514)5555555", "location":{ "city":{ "name":"Montreal", "code":"MTL", "name_fr":"Montreal" }, "latitude":42.506555, "postal_code":"H0H 0H0", "regions":{ "province":"Quebec" }, "country":{ "name":"Canada", "code":"CA", "name_fr":"Canada" }, "street_address":"42 du xxxxxxxx", "longitude":-71.570433 }, "created_at":"2008/08/05 20:01:58 +0000", "email":null } } } } }}} ------ Continue to [POST_Merchant_Comment Commenting on a merchant] Back to [GET_Merchant_Tags Getting tags for a merchant] Up to [API Our Index]