= Adding a tag to a merchant =
== Request Format / requires [OAuth_Headers OAuth HTTP Authorization Headers] ==
This is a POST request (PUT is also supported)
{{{
http://api.praized.com/{community_slug}/merchants/{merchant_pid}/taggings.{format}?api_key={your api key}
}}}
== Arguments ==
=== {merchant_pid} ===
The unique identifier for a merchant.
format : string
ex : 96423266cd5145552decb67454b13e4e
== POST Body ==
=== POST Text Format ===
The POST body has three lines
The first is the name of the function :
format : string
value : Add my tag
The second is the tag itself
format : string
ex: fast-food
The third is type of the method used (HTTP verb)
format : string
value : post
=== POST XML Format ===
{{{
fast food
}}}
== Response Format ==
=== XML ===
{{{
http://api-tribe.com/praized/
apitribe
Api Tribe
http://api-tribe.com/
http://api-tribe.com/praized/places/ca/quebec/montreal/sushi-restaurant/h0h0h0
3140580f18afeea8e7665f5bf4e1191d
Sushi Restaurant
2008-09-11T20:57:42Z
http://przd.com/nIadl-93
2
1
50
1
2
3
http://ca.stats.praized.com/ping?t=1221166663.26701
sushi
fast-food
downtown
- Masquer le texte des messages pr�c�dents -
6
(514)5555555
Montreal
MTL
Montreal
H0H 0H0
42.506555
Quebec
Canada
CA
Canada
42 du nnnnnnnnn
-71.570433
2008-08-05T20:01:58Z
}}}
=== JSON ===
{{{
{
"praized":{
"merchant":{
"permalink":"http://api-tribe.com/praized/places/ca/quebec/montreal/sushi-restaurant/h0h0h0",
"pid":"3140580f18afeea8e7665f5bf4e1191d",
"name":"Sushi Restaurant",
"short_url":"http://przd.com/nIbl-93",
"updated_at":"2008/09/08 00:20:38 +0000",
"favorite_count":"1",
"sponsored_links":[
],
"votes":{
"score":"100",
"neg_count":"0",
"pos_count":"1",
"count":"1"
},
"stat_links":[
{
"url":"http://ca.stats.praized.com/ping?t=1220833239.06230"
}
],
"tags":[
{
"name":"sushi"
}
],
"tag_count":"2",
"url":null,
"comment_count":"2",
"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 ni",
"longitude":-71.570433
},
"email":null,
"created_at":"2008/08/05 !
20:01:58 +0000"
},
"community":{
"base_url":"http://api-tribe.com/praized/",
"slug":"apitribe",
"name":"Api Tribe",
"home_url":"http://api-tribe.com/"
}
}
}
}}}
------
Continue to [GET_User Getting users information]
Back to [DELETE_Merchant_User_Favorite Removing a merchant to the currently logged user's favorites]
Up to [API Our Index]