MyAllocator BuildToUs API PHP SDK for OTA's
  • Namespace
  • Class
  • Tree

Namespaces

  • MyAllocator
    • phpsdkota
      • src
        • Api
          • Inbound
        • Object

Classes

  • MaRouter

Interfaces

  • MaInboundInterface

Interface MaInboundInterface

Namespace: MyAllocator\phpsdkota\src\Api\Inbound
Located at Api/Inbound/MaInboundInterface.php

Methods summary

public MyAllocator\phpsdkota\src\Object\MaResponse
# authenticateProperty( array $args )

Authenticate Myallocator/OTA property.

Authenticate Myallocator/OTA property.

After myallocator calls setupProperty, OTA stores mya_property_id to ota_property_id mapping. On each request, validate the 1:1 mya_property_id to ota_property_id mapping.

args['mya_property_id']* string The property_id in MyAllocator. args['ota_property_id']* string The property_id in OTA.

Parameters

$args
(See above)

Returns

MyAllocator\phpsdkota\src\Object\MaResponse
public MyAllocator\phpsdkota\src\Object\MaResponse
# setupProperty( array $args )

Setup a new property on OTA.

Setup a new property on OTA.

args['verb']* string Defines the API endpoint method. args['guid']* string A unique 36 character code that identifies a request. args['mya_property_id']* string The property_id in MyAllocator. args['ota_property_id']* string The property_id in OTA. args['ota_regcode'] string ? TODO

Parameters

$args
(See above)

Returns

MyAllocator\phpsdkota\src\Object\MaResponse
public MyAllocator\phpsdkota\src\Object\MaResponse
# getRoomTypes( array $args )

Get room type information for a property.

Get room type information for a property.

args['verb']* string Defines the API endpoint method. args['guid']* string A unique 36 character code that identifies a request. args['mya_property_id']* string The property_id in MyAllocator. args['ota_property_id']* string The property_id in OTA.

Parameters

$args
(See above)

Returns

MyAllocator\phpsdkota\src\Object\MaResponse
public MyAllocator\phpsdkota\src\Object\MaResponse
# getBookingId( array $args )

Get information for a specific booking for a property.

Get information for a specific booking for a property.

args['verb']* string Defines the API endpoint method. args['guid']* string A unique 36 character code that identifies a request. args['mya_property_id']* string The property_id in MyAllocator. args['ota_property_id']* string The property_id in OTA. args['booking_id']* string The booking identifier. args['booking_id_version'] string The OTA version at time of booking.

Parameters

$args
(See above)

Returns

MyAllocator\phpsdkota\src\Object\MaResponse
public MyAllocator\phpsdkota\src\Object\MaResponse
# getBookingList( array $args )

Get a list of bookings within a date range for a property.

Get a list of bookings within a date range for a property.

args['verb']* string Defines the API endpoint method. args['guid']* string A unique 36 character code that identifies a request. args['mya_property_id']* string The property_id in MyAllocator. args['ota_property_id']* string The property_id in OTA. args['start_ts']* string The start timestamp (YYYYMMDDtHHMMSSZ). args['end_ts']* string The end timestamp (YYYYMMDDtHHMMSSZ).

Parameters

$args
(See above)

Returns

MyAllocator\phpsdkota\src\Object\MaResponse
public MyAllocator\phpsdkota\src\Object\MaResponse
# ARIUpdate( array $args )

Update inventory (rates and availability) for a property.

Update inventory (rates and availability) for a property.

args['verb']* string Defines the API endpoint method. args['guid']* string A unique 36 character code that identifies a request. args['mya_property_id']* string The property_id in MyAllocator. args['ota_property_id']* string The property_id in OTA. args['ota_room_id']* string The room_id in OTA. args['Inventory']* string The rates to update.

Parameters

$args
(See above)

Returns

MyAllocator\phpsdkota\src\Object\MaResponse
public
# log( string $str )

Inbound API logs. Implement a logging method here to capture the inbound API logs.

Inbound API logs. Implement a logging method here to capture the inbound API logs.

Parameters

$str
The log.

Magic methods summary

MyAllocator BuildToUs API PHP SDK for OTA's API documentation generated by ApiGen