{"size": 392, "ext": "js", "max_stars_repo_path": "Example-8/src/API/Data.js", "max_stars_repo_name": "Meeyzt/Example-React", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Example-8/src/API/Data.js", "max_issues_repo_name": "Meeyzt/Example-React", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Example-8/src/API/Data.js", "max_forks_repo_name": "Meeyzt/Example-React", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.0, "max_line_length": 137, "alphanum_fraction": 0.6964285714}
import axios from "axios";

export const getData = async () => {
  //https://www.accuweather.com/images/weathericons/34.svg
  try {
    const response = await axios.get(
      "http://dataservice.accuweather.com/forecasts/v1/daily/5day/317350?apikey=xgfu5BtPttNuu4wR39HFzz6fMnuGSloL&metric=true&language=tr"
    );
    return response.data;
  } catch (error) {
    console.log(error);
  }
};
