Skip to content

Radico/tap-opera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tap-opera

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

Quick start

  1. Install
pip install tap-opera
  1. 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"
}
  1. Run the tap in discovery mode to get the catalog file
tap-opera --config config.json --discover > catalog.json
  1. In the catalog.json file, select the streams to sync

  2. Run the tap in sync mode

tap-opera --config config.json --catalog catalog.json

Configuration

Required configuration settings

  • api_key - Your OPERA Cloud API key
  • hotel_id - Your hotel ID
  • start_date - The date to start extracting data from, in ISO format (e.g. "2023-01-01T00:00:00Z")

Optional configuration settings

  • external_system - External system identifier
  • app_key - Application key

Streams

profiles

  • Endpoint: /crm/v1/profiles
  • Primary key: id
  • Replication strategy: INCREMENTAL
  • Replication key: updated

reservations

  • Endpoint: /rsv/v1/reservations
  • Primary key: id
  • Replication strategy: INCREMENTAL
  • Replication key: lastModifiedDateTime

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages