Converting from V1 to V2 and the differences between them
Converting
V2 simply contains more functionality and fields over V1 and one other slight, but important difference: the main id parameter to all the functions has changed as follows
Name | Type | Required | Description | |
---|---|---|---|---|
from | id | integer | Optional | The ID number of a sale ad. This can be used to retrieve data for just one ad. |
to | ad_ids | integer array | Optional | The ID numbers of some sale ads. This can be used to retrieve data for one or more ads. |
So, in order to successfully convert your code to use V2, you need to change the name of your id parameter from 'id' to 'ad_ids' and wrap this in an array. This now gives the option to request more than one specific property at a time.
Additionally, as stated on the documentation
homepage, you'll need to change the WSDL declaration you
use to https://api.daft.ie/v2/wsdl.xml
.
Differences
As stated, besides the difference mentioned above, the only changes are extra functions and extra fields for existing functions.
The extra functions are:
The new fields are:
Function | Field Name | Type | Description |
---|---|---|---|
property_types | key | string | The value for a given property type that should be used with the property_types parameter to the search functions |
media | iphone_url | string | A URL to an image designed for use with iPhone Apps - it's size is between medium and large. |
media | ipad_search_url | string | A URL to an image designed for use with iPad Apps - it's size is a 160x120 window. |
media | ipad_gallery_url | string | A URL to an image designed for use with iPad Apps - it's size is a 340x255 window. |
search_sale, search_rental, search_commercial, search_shortterm |
ber_rating | string | BER Rating of this property, e.g. A1, B2 |