Amadeus SOAP wrapper written in go.
Currently supports Availability and Description actions.
Can be used for dev purposes.
- Create
config.yaml
file - Add
CONFIG_FILE=path/to/config.yaml
to your env go run cmd/main.go
It will also create logs/
dir in the your cwd to store XML request/response.
There is no way you can disable it for now.
You can also grab a released version from Releases and run executable.
username: XXXXXX
password: P@$$w0rd
pseudoCityCode: NYC1Z123
agentDutyCode: SU
requestorType: U
posType: 1
url: https://nodeD1.test.webservices.amadeus.com/
wsap: 1XXXXWYZZYZY
Usually provided by Amadeus team.
Running the server spins us a local sever on 0.0.0.0:3000
.
Use PORT
env-var to set a different port
POST /api/availability
{
"checkIn": "2022-09-10",
"checkOut": "2022-09-11",
"adults": 1,
"currency": "USD",
"hotels": [
"HYSEAHSR"
],
"infoSource": "Distribution"
}
infoSource
- provide Distribution
for GDS content, and Leisure
for partner content (XD, BK, HB, etc.)
POST /api/description
{
"hotels": [
"HYSEAHSR"
]
}
Initial conversion is done using xmltogo tool