As countries (USA, France, Italy) are the places where ads are.
The API returns a list of the countries managed by associated yacht4web for advertisements or their selection.
http://api.yacht4web.com/1.0/yacht/countries
appId
necessary |
Your App id |
lang
Optional |
The language that you want to. Available languages If not indicated is returned the country's name in English. |
Optional |
You can further refine your search by adding the filter parameters or common selection, such as having only the sailboats or only used boats. |
http://api.yacht4web.com/1.0/yacht/countries?appid=[appId]
The Api returns an array of objects made of code, name of the State and the number of associated ads.
Ads that are not associated with any code line are inserted and empty name.
[
{
"code":"",
"name":"",
"ads":79
},
{
"code":"IT",
"name":"Italy",
"ads":1
}
]