als_get_current_blocks.cgi

Top  Previous  Next

Description

The als_get_current_blocks.cgi web service will retrieve block definitions similar to als_get_block_defs.cgi but also reutrn vendor, product and location information and limit the result to active block definitions.

 

This is a low level call to return block definitions for use in routines that manipulate block definitions themselves. Use als_get_block_availability.cgi to get seating information.

 

Example Usage             http://127.0.0.1/als_get_vendors.cgi

 

Inputs

Parameter

Description

Required

Example

Data Type

block

Unique identifier for block defs

 

Optional

block=5

Integer

vendor

Vendor Code to limit the result set to a specific vendor

 

See also als_get_vendors.cgi

 

Optional

vendor=22

Integer

product

Product  Code to limit the result set to a specific product

 

See also als_get_products.cgi

 

Optional

product=234

Integer

startdate

StartDate of block is greater than or equal to this date

Optional

startdate=2005-11-08

Date

enddate

EndDate of block is less than  than or equal to this date

Optional

enddate=205-11-25

Date

 

 

Returned Fields

#

Field Name

Description

Data Type

1

 



2




 

 

 

 

 

XML Example

<?xml version="1.0" encoding="utf-8" ?>

- <root>

- <blocks>

<row block="19" blocktime="10:00:00 AM" quantity="10" vendor="1" product="1" vendorname="Blue Hawaiian Helicopters" productname="Hana/Haleakala- A Star" location="3" locationname="Maui" startdate="11/5/2005" enddate="12/30/2005" releasedays="1" releasetime="8:00:00 AM" sun="True" mon="True" tue="True" wed="True" thu="True" fri="True" sat="True" autofax="False" faxno="" email="sgarland@astatech.com" emailccto="" sequenceorder="" />

<row block="20" blocktime="8:00:00 AM" quantity="10" vendor="403" product="1332" vendorname="AAA Diving" productname="Boat Ride" location="6" locationname="Oahu" startdate="11/5/2005" enddate="12/31/2005" releasedays="1" releasetime="9:00:00 AM" sun="True" mon="True" tue="True" wed="True" thu="True" fri="True" sat="True" autofax="False" faxno="" email="" emailccto="" sequenceorder="" />

<row block="21" blocktime="10:00:00 AM" quantity="25" vendor="1" product="1" vendorname="Blue Hawaiian Helicopters" productname="Hana/Haleakala- A Star" location="3" locationname="Maui" startdate="11/9/2005" enddate="11/26/2005" releasedays="1" releasetime="" sun="True" mon="True" tue="True" wed="True" thu="True" fri="True" sat="True" autofax="False" faxno="" email="" emailccto="" sequenceorder="" />

</blocks>

</root>