Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include fallback mechanism in your code to avoid issues #27

Open
fawazahmed0 opened this issue Dec 5, 2021 · 3 comments
Open

Include fallback mechanism in your code to avoid issues #27

fawazahmed0 opened this issue Dec 5, 2021 · 3 comments

Comments

@fawazahmed0
Copy link
Owner

fawazahmed0 commented Dec 5, 2021

This API have multiple fallback urls:

Fallback URL:

https://raw.githubusercontent.com/fawazahmed0/quran-api/{apiVersion}/{endpoint}

Pseudo code:
For example, if you want to fetch ben-muhiuddinkhan edition

Fetch https://cdn.jsdelivr.net/gh/fawazahmed0/quran-api@1/editions/ben-muhiuddinkhan.min.json
If above url fails, then try fetching https://cdn.jsdelivr.net/gh/fawazahmed0/quran-api@1/editions/ben-muhiuddinkhan.json
If above url fails, then try fetching https://raw.githubusercontent.com/fawazahmed0/quran-api/1/editions/ben-muhiuddinkhan.min.json
If above url fails, then try fetching https://raw.githubusercontent.com/fawazahmed0/quran-api/1/editions/ben-muhiuddinkhan.json

@fawazahmed0 fawazahmed0 changed the title Include fallback mechanism in code to avoid issues Include fallback mechanism in your code to avoid issues Dec 5, 2021
Repository owner deleted a comment from ismailhossainmaruf Jun 25, 2022
@Abbosjonhacker
Copy link

hi, I cannot this api for my telegram bot, I have 403 error, is there any configuration for preventing telegram bot messages

@fawazahmed0
Copy link
Owner Author

Please could you share the code

@Abbosjonhacker
Copy link

Abbosjonhacker commented May 12, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@fawazahmed0 @Abbosjonhacker and others