8000 Include fallback mechanism in your code to avoid issues · Issue #27 · fawazahmed0/quran-api · GitHub
[go: up one dir, main page]

Skip to content

Include fallback mechanism in your code to avoid issues #27

Open

Description

@fawazahmed0

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

Activity

  1. changed the title [-]Include fallback mechanism in code to avoid issues[/-] [+]Include fallback mechanism in your code to avoid issues[/+] on Dec 5, 2021
  2. Repository owner deleted a comment from ismailhossainmaruf on Jun 25, 2022
  3. Abbosjonhacker commented on May 11, 2023

    @Abbosjonhacker

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

  4. fawazahmed0 commented on May 12, 2023

    @fawazahmed0
    OwnerAuthor

    Please could you share the code

  5. Abbosjonhacker commented on May 12, 2023

    @Abbosjonhacker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0