Add a tip for a city. The response is the tip you just added.
Usage:
POST /api/add_tip - Add a tip for a city
Parameters:
geoname_id={id} - the GeoName ID of the destination. Use the search method to find a suitable Geoname ID.
title (required) - title of the tip
review (required) - body of the tip review
public (optional, defaults to '1') - if the tip should be public. 1 for yes, 0 for no.
url (optional) - url for the tip
address (optional) - address for the tip
tags (optional) - comma-separated list of tags for the tip
Response:
<tips>
<tip>
<id>88</id>
<title>Cheese shops</title>
<review>I like cheese.</review>
<url>http://www.ilovecheese.com/</url>
<address>London somewhere, I forget. There was cheese.</address>
<status>public</status>
<rating>1</rating>
<city>
<name>London</name>
<rgb>59ead8</rgb>
<url>http://localhost:3000/place/gb/london</url>
<geoname_id>2643743</geoname_id>
</city>
<traveller>
<name>Wallace</name>
<sha1email>d54584148714d84a2fb1401e5879872fd9edc570</sha1email>
<icon_id>83ff2c03a3861fe9eb6327475878784</icon_id>
<nick>cheeseman</nick>
<url>http://localhost:3000/traveller/cheeseman</url>
</traveller>
</tip>
</tips>
Page Information
|
Wiki Information |
Recent PBwiki Blog Posts |