According to this documentation
I am NOT able to guess the correct syntax. I have tried the following which don't seem to work nor return an error.
I plan to NOT call the API until the date change is detected in order to avoid unnecessary calls.
In particular for Ramadhan I would like to retrieve the timings for the next day so the user can tell when Fajr for the next day is without having to wait for past midnight.
@AlGantori Al Salaamu Alaykum!
Are you have this issue again? The last time I flushed the cache and we got the new co-ordinates for those locations from the Google maps API.
I will check a couple of other things and revert back.
@AlGantori Ah, hang on, I just saw your API calls.
Here is the correct syntax: http://api.aladhan.com/v1/timingsByCity/30-04-2022?city=Corvallis&country=USA&method=2
No : after timingsByCity/.
Hope this helps.
removing the colon fixed the problem, updating the doc with actual example would help the next person, Thank you.
I peeked around github but I could not find where the doc is really located (https://aladhan.com/prayer-times-api#GetTimingsByCity) otherwise I would have attempted adding my little example contribution 🙂
Since I have your attention, do you handle this tafseer API as well? because it currently does not support secure https which causes CORS (mixed content) errors in my app.
I posted an issue here:
@AlGantori yes the docs are with the API documentation on the aladhan.com website and also with the source code at https://github.com/islamic-network/api.aladhan.com/blob/master/routes/timings/v1/prayerTimes.php#L477.
I'm afraid I don't look after the tafseer API - just https://alquran.cloud/api.