net2rent/php-connector

There is no license information available for the latest version (0.2.1) of this package.

PHP connector to consume net2rent API

This package's canonical repository appears to be gone and the package has been frozen as a result.

0.2.1 2015-01-26 13:28 UTC

This package is not auto-updated.

Last update: 2024-01-20 12:59:03 UTC


README

net2rent offers the PHPConnector, a simple but effective PHP class that will help you making calls to the net2rent API.

PHPConnector includes authentication to the API and basic functions for portals. At this time, the next functions are available:

  • Portal

    • getProperties(array $options = array())
    • getProperty($property_id, array $options = array())
    • getCountries()
    • getCities()
    • getPropertyStatus($propertyId)
    • getBlockedPeriods($propertyId)
    • getTypologyDaysPrices($typologyId)
    • getTypologyDaysPricesPeriods($typologyId)
  • Publisher

    • getProperties(array $options = array())
    • getProperty($property_id, array $options = array())
    • getCountries()
    • getCities()
    • insertProperty(array $properyOptions)
    • updateProperty(int $propertyId, array $properyOptions)
    • updateImages(int $typologyId, array $images)
    • updateEquipment(int $propertyId, array $equipment)
    • updatePropertyStatus(int $propertyId, array $availability)
    • updateTypologyPrices(int $typologyId, array $prices)

An example of the the class instantiation and the use of these functions is also included into 'examples' folder.

Version

Current version is 0.2.1

Support or Contact

Having trouble with PHPConnector or net2rent API? Contact us at soporte@net2rent.com and we’ll help you sort it out.