Skip to content

Commit

Permalink
a good test working - going to branch and work it into flightForm
Browse files Browse the repository at this point in the history
  • Loading branch information
Logan Leopold committed Jun 17, 2021
1 parent bf137cf commit 3ab3f3e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/TestCall.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ const TestCall = (props) => {

try {

console.log(props.oAuth, "OAUTH")
let testFlights = await axios({
method: "GET",
url: `https://test.api.amadeus.com/v2/shopping/flight-offers?originLocationCode=SFO&destinationLocationCode=JFK&departureDate=2021-08-15&returnDate=2021-08-22&adults=1`,
Expand All @@ -27,6 +26,11 @@ const TestCall = (props) => {
},
})

let currencies = await axios({
method: "GET",
url: "https://cdn.jsdelivr.net/gh/fawazahmed0/currency-api@1/latest/currencies/eur/jpy.json",
})

refreshFlights(testFlights)
return testFlights

Expand Down

0 comments on commit 3ab3f3e

Please sign in to comment.