text: import requests
  
  SHEETY_PRICES_ENDPOINT = "https://api.sheety.co/ad8d11e0d75ff57d00d6d5660e56066b/flightDeals2/prices"
  
  class DataManager:
      def __init__(self):
          self.destination_data = {}
  
      def get_destination_data(self):
          # 2. Use the Sheety API to get all the data in the sheet and print it out.
          response = requests.get(url=SHEETY_PRICES_ENDPOINT)
          data = response.json()
          self.destination_data = data["prices"]
  
          # 3. Try importing pretty print and printing the data out again using pprint() to see if formatted.
          # pprint(data)
          return self.destination_data
  
      # 6. In the DataManager Class make a PUT request and use the row id from sheet_data to update the Google Sheet with the IATA codes. (Do this using code).
      def update_destination_codes(self):
          for city in self.destination_data:
              new_data = {
                  "price": {"iataCode": city["iataCode"]}
              }
  
              response = requests.put(url=f"{SHEETY_PRICES_ENDPOINT}/{city['id']}",json=new_data)
  
              print(response.text)
  
  