amadeus4dev-examples / amadeus-ios

Swift library for the Amadeus Self-Service travel APIs
https://developers.amadeus.com
MIT License
12 stars 10 forks source link

Bad hostname when production environment is selected #32

Closed alnacle closed 3 years ago

alnacle commented 3 years ago

Moving to production implies passing the host variable to the SDK. The SDK does not change the internal hostname correctly.

The following code does not work:

amadeus = Amadeus(client_id: "foo",
                   client_secret: "bar",
                   environment: ["hostname": "production"])

Two issues here: