This is a Singer tap that produces JSON-formatted data following the Singer spec.
This tap:
- Pulls raw data from the Oracle Hospitality OPERA Cloud API
- Extracts the following resources:
- Customer Profiles
- Reservations
- Outputs the schema for each resource
- Incrementally pulls data based on the input state
- Install
pip install tap-opera
- Create the config file
Create a JSON file called config.json
containing:
{
"api_key": "YOUR_API_KEY",
"hotel_id": "YOUR_HOTEL_ID",
"start_date": "2023-01-01T00:00:00Z"
}
- Run the tap in discovery mode to get the catalog file
tap-opera --config config.json --discover > catalog.json
-
In the catalog.json file, select the streams to sync
-
Run the tap in sync mode
tap-opera --config config.json --catalog catalog.json
api_key
- Your OPERA Cloud API keyhotel_id
- Your hotel IDstart_date
- The date to start extracting data from, in ISO format (e.g. "2023-01-01T00:00:00Z")
external_system
- External system identifierapp_key
- Application key
- Endpoint:
/crm/v1/profiles
- Primary key:
id
- Replication strategy: INCREMENTAL
- Replication key:
updated
- Endpoint:
/rsv/v1/reservations
- Primary key:
id
- Replication strategy: INCREMENTAL
- Replication key:
lastModifiedDateTime