United Kingdom
0800 048 8079
Mon - Sat
08:00h - 22:00h
Sun
08:00h - 22:00h

API documentation

Javascript web service

Javascript service renders its output as HTML and is used for publishing Adriatic.hr content on client's web site. Input parameters can be specified to customize HTML formatting style and other properties of content being displayed.

Usage

Service is invoked by calling a javascript. Method name and parameters are specified in javascript URL

Example:
<script type="text/javascript"
  src="https://www.adriatic.hr/services/b2b/javascript.php?
    call=getprivateaccommodationatlocation&
    lang=en&
    location=Hvar">
</script>

This example calls GetPrivateAccommodationAtLocation method, passing lang and location parameters. Result output is HTML code, displaying a list of private accommodation on Hvar location, in English.

Notes

When using the Javascript service please note:
  • It is required to set call parameter specifying method name being invoked - other parameters refer to service method parameters and can be ommited, if not explicitly required by method.
  • HTML output is written to client's page, at the position of <script...> code block.
  • Affiliate partners should specify their AffiliateSiteId parameter.
  • Parameter and method names are not case sensitive so that bgcolor and BgColor refer to the same thing.
  • In case of an error, a message describing the error is displayed. This is usually the result of incorrect user request, such as required paramter not being set, misspelled method name etc. To prevent error messages from showing set the Silent parameter.
  • Formatting style can be customized by specifying parameters such as TextColor or Font, however, setting noFormat parameter indicates no styles are to be used and formatting of a page calling the javascript is applied.

Methods overview

This is the overview of service methods provided by Javascript web service. Note that specifying method parameters is optional, unless stated otherwise.

GetPrivateAccommodationAtLocation

Displays an offer of private accommodation at a specified geographic location. This location is specified by the location parameter.

Input parameters

AffiliateSiteIdnumericYour affiliate site id number.
BgColornumericColor value (in hex) used as background color.
BorderColornumericColor value (in hex) used as border color.
CharsetstringCharset used for displaying text. This should match the charset of your HTML page. It is recommended to set this parameter manually.
FontstringText font name. You can specify mulitple font names, separated by coma
FontSizestringText font size.
LangstringLanguage used for displaying text. It is advisable to set this parameter.
LocationstringLocation name (or part of the location name) refering to either place, riviera or region. This parameter is required.
NoBorderboolValue of 1 displays content without surrounding border. Default value is 0.
NoTitleboolValue of 1 displays content without title section. Default value is 0.
ResultsnumericNumber of results (items) displayed. Can be a number between 1-20. Default value is 5.
SilentboolValue of 1 turns off any error reporting, displaying no messages upon service failure. Default value is 0.
TargetstringHTML form target. If not set form will be submitted to current window.
TextColornumericColor value (in hex) used as text color.
ThemestringA predefined color theme. Possible values: adriatic, desert, green, midnight, orange. Default value is adriatic.
TitleBgColornumericColor value (in hex) used as background color.
TitleColornumericColor value (in hex) used as title's text color.
UrlColornumericColor value (in hex) used as url (links) color.
WidthstringContent size (width).

Example usage

Request:
<script type="text/javascript"
  src="https://www.adriatic.hr/services/b2b/javascript.php?
    call=getprivateaccommodationatlocation&
    lang=en&
    location=Hvar">
</script>

Output:
Adriatic.hr Private accommodation
Jelsa, Hvar
capacity:8+0 Beach:450 m
From 18,39 €

Hvar
capacity:8+0 Beach:500 m
From 28,00 €

Jelsa, Hvar
capacity:10+0 Beach:400 m
From 38,70 €

Jelsa, Hvar
capacity:10+4 Beach:400 m
From 41,40 €

Vrisnik, Hvar
capacity:4+0 Beach:5000 m
From 38,00 €

more facilities »

GetRecommendedPrivateAccommodation

Displays offer of private accommodation facilities which are recommended by Adriatic.hr.

Input parameters

AffiliateSiteIdnumericYour affiliate site id number.
BgColornumericColor value (in hex) used as background color.
BorderColornumericColor value (in hex) used as border color.
CharsetstringCharset used for displaying text. This should match the charset of your HTML page. It is recommended to set this parameter manually.
FontstringText font name. You can specify mulitple font names, separated by coma
FontSizestringText font size.
LangstringLanguage used for displaying text. It is advisable to set this parameter.
NoBorderboolValue of 1 displays content without surrounding border. Default value is 0.
NoTitleboolValue of 1 displays content without title section. Default value is 0.
ResultsnumericNumber of results (items) displayed. Can be a number between 1-20. Default value is 5.
SilentboolValue of 1 turns off any error reporting, displaying no messages upon service failure. Default value is 0.
TargetstringHTML form target. If not set form will be submitted to current window.
TextColornumericColor value (in hex) used as text color.
ThemestringA predefined color theme. Possible values: adriatic, desert, green, midnight, orange. Default value is adriatic.
TitleBgColornumericColor value (in hex) used as background color.
TitleColornumericColor value (in hex) used as title's text color.
UrlColornumericColor value (in hex) used as url (links) color.
WidthstringContent size (width).

Example usage

Request:
<script type="text/javascript"
  src="https://www.adriatic.hr/services/b2b/javascript.php?
    call=getrecommendedprivateaccommodation&
    lang=en">
</script>

Output:
Adriatic.hr Private accommodation
Lun, Pag
capacity:8+1 Beach:300 m
From 57,00 €

Podaca, Makarska
capacity:6+1 Beach:120 m
From 26,00 €

Marina, Trogir
capacity:4+2 Beach:900 m
From 38,70 €

Rijeka
capacity:6+4 Beach:2400 m
From 53,55 €

Savar, Dugi otok
capacity:4+1 Beach:750 m
From 80,00 €

more facilities »

GetRecommendedPrivateAccommodationObject

Displays random private accommodation object.

Input parameters

AffiliateSiteIdnumericYour affiliate site id number.
BgColornumericColor value (in hex) used as background color.
BorderColornumericColor value (in hex) used as border color.
CharsetstringCharset used for displaying text. This should match the charset of your HTML page. It is recommended to set this parameter manually.
FontstringText font name. You can specify mulitple font names, separated by coma
FontSizestringText font size.
LangstringLanguage used for displaying text. It is advisable to set this parameter.
NoBorderboolValue of 1 displays content without surrounding border. Default value is 0.
NoTitleboolValue of 1 displays content without title section. Default value is 0.
ResultsnumericNumber of results (items) displayed. Can be a number between 1-20. Default value is 5.
SilentboolValue of 1 turns off any error reporting, displaying no messages upon service failure. Default value is 0.
TargetstringHTML form target. If not set form will be submitted to current window.
TextColornumericColor value (in hex) used as text color.
ThemestringA predefined color theme. Possible values: adriatic, desert, green, midnight, orange. Default value is adriatic.
TitleBgColornumericColor value (in hex) used as background color.
TitleColornumericColor value (in hex) used as title's text color.
UrlColornumericColor value (in hex) used as url (links) color.

Example usage

Request:
<script type="text/javascript"
  src="https://www.adriatic.hr/services/b2b/javascript.php?
    call=getrecommendedprivateaccommodationobject&
    lang=en">
</script>

Output:
Adriatic.hr

Bol, Brač

capacity:4+3
Beach:950 m
From 91,00 €

more facilities »

PrivateAccommodationSearchForm

Displays HTML search form for private accommodation offer.

Input parameters

AffiliateSiteIdnumericYour affiliate site id number.
BgColornumericColor value (in hex) used as background color.
BorderColornumericColor value (in hex) used as border color.
CharsetstringCharset used for displaying text. This should match the charset of your HTML page. It is recommended to set this parameter manually.
FontstringText font name. You can specify mulitple font names, separated by coma
FontSizestringText font size.
LangstringLanguage used for displaying text. It is advisable to set this parameter.
LocationFilterstringLocations to include in a search. This limits the options user can select. Multiple location names can be specified by spearating them with comma. The names are case insesitive. If not set, no filter will be applied. Example: locationfilter=Hvar (include only the locations on Hvar), locationfilter=Split,Korcula (include locations on both Split and Korcula).
NoBorderboolValue of 1 displays content without surrounding border. Default value is 0.
NoTitleboolValue of 1 displays content without title section. Default value is 0.
SilentboolValue of 1 turns off any error reporting, displaying no messages upon service failure. Default value is 0.
TargetstringHTML form target. If not set form will be submitted to current window.
TextColornumericColor value (in hex) used as text color.
ThemestringA predefined color theme. Possible values: adriatic, desert, green, midnight, orange. Default value is adriatic.
TitleBgColornumericColor value (in hex) used as background color.
TitleColornumericColor value (in hex) used as title's text color.
UrlColornumericColor value (in hex) used as url (links) color.
WidthstringContent size (width).

Example usage

Request:
<script type="text/javascript"
  src="https://www.adriatic.hr/services/b2b/javascript.php?
    call=privateaccommodationsearchform&
    lang=en">
</script>

Output:
Adriatic.hr Find accommodation
Dates: -
 
Number of persons:
 
Accommodation type:
Category:
Position:
Total daily amount from: To:
 
 
Region, riviera or place:
Island or mainland:
Beach distance:
Meals:
 
 
 
 
 
 
 
 
 

PrivateAccommodationSearchFormLite

Displays HTML search form for private accommodation offer.

Input parameters

AffiliateSiteIdnumericYour affiliate site id number.
BgColornumericColor value (in hex) used as background color.
BorderColornumericColor value (in hex) used as border color.
CharsetstringCharset used for displaying text. This should match the charset of your HTML page. It is recommended to set this parameter manually.
FontstringText font name. You can specify mulitple font names, separated by coma
FontSizestringText font size.
LangstringLanguage used for displaying text. It is advisable to set this parameter.
LocationFilterstringLocations to include in a search. This limits the options user can select. Multiple location names can be specified by spearating them with comma. The names are case insesitive. If not set, no filter will be applied. Example: locationfilter=Hvar (include only the locations on Hvar), locationfilter=Split,Korcula (include locations on both Split and Korcula).
NoBorderboolValue of 1 displays content without surrounding border. Default value is 0.
NoTitleboolValue of 1 displays content without title section. Default value is 0.
SilentboolValue of 1 turns off any error reporting, displaying no messages upon service failure. Default value is 0.
TargetstringHTML form target. If not set form will be submitted to current window.
TextColornumericColor value (in hex) used as text color.
ThemestringA predefined color theme. Possible values: adriatic, desert, green, midnight, orange. Default value is adriatic.
TitleBgColornumericColor value (in hex) used as background color.
TitleColornumericColor value (in hex) used as title's text color.
UrlColornumericColor value (in hex) used as url (links) color.
WidthstringContent size (width).

Example usage

Request:
<script type="text/javascript"
  src="https://www.adriatic.hr/services/b2b/javascript.php?
    call=privateaccommodationsearchformlite&
    lang=en">
</script>

Output:
Adriatic.hr Find accommodation
Dates: -
Number of persons:
 
Accommodation type:
 
 
Region, riviera or place:

PrivateAccommodationSearchFormLocation

Displays HTML search form for private accommodation offer at a specified geographic location.

Input parameters

AffiliateSiteIdnumericYour affiliate site id number.
BgColornumericColor value (in hex) used as background color.
BorderColornumericColor value (in hex) used as border color.
CharsetstringCharset used for displaying text. This should match the charset of your HTML page. It is recommended to set this parameter manually.
FontstringText font name. You can specify mulitple font names, separated by coma
FontSizestringText font size.
LangstringLanguage used for displaying text. It is advisable to set this parameter.
LocationFilterstringLocations to include in a search. This limits the options user can select. Multiple location names can be specified by spearating them with comma. The names are case insesitive. If not set, no filter will be applied. Example: locationfilter=Hvar (include only the locations on Hvar), locationfilter=Split,Korcula (include locations on both Split and Korcula).
NoBorderboolValue of 1 displays content without surrounding border. Default value is 0.
NoTitleboolValue of 1 displays content without title section. Default value is 0.
SilentboolValue of 1 turns off any error reporting, displaying no messages upon service failure. Default value is 0.
TargetstringHTML form target. If not set form will be submitted to current window.
TextColornumericColor value (in hex) used as text color.
ThemestringA predefined color theme. Possible values: adriatic, desert, green, midnight, orange. Default value is adriatic.
TitleBgColornumericColor value (in hex) used as background color.
TitleColornumericColor value (in hex) used as title's text color.
UrlColornumericColor value (in hex) used as url (links) color.
WidthstringContent size (width).

Example usage

Request:
<script type="text/javascript"
  src="https://www.adriatic.hr/services/b2b/javascript.php?
    call=privateaccommodationsearchformlocation&
    lang=en&
    locationfilter=Hvar">
</script>

Output:
Adriatic.hr Geographical search

Existing User

By opening a user account or by logging into an existing account you accept our Terms and Conditions and Privacy Policy.

Live Chat Can we help you?
Adriatic.hr uses "cookies" on our website to provide you with a better user experience. By using our website you consent to their use. Learn more... Close
4.6 / 116 reviews Adriatic.hr - Google Reviews