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

Awesome API! Suggestion for ease of access #5

Closed
xXGoziXx opened this issue Aug 27, 2024 · 10 comments
Closed

Awesome API! Suggestion for ease of access #5

xXGoziXx opened this issue Aug 27, 2024 · 10 comments

Comments

@xXGoziXx
Copy link

xXGoziXx commented Aug 27, 2024

Hi Glowstudent777,

Fellow Christian developer here. Thanks for making this. Have you considered making this an npm package that can be installed?
There's also a platform called RapidAPI that lets you create an endpoint that people can use.
Just a few suggestions that could make it easier to add this to projects :)

Godstime

@xXGoziXx xXGoziXx changed the title Just a Suggestion Awesome API! Suggestion for ease of access Aug 27, 2024
@Glowstudent777
Copy link
Owner

Hi, I do actually have a published NPM package.

Here are the links to them:

https://github.com/Glowstudent777/YouVersion-API-NPM

https://www.npmjs.com/package/@glowstudent/youversion

@xXGoziXx
Copy link
Author

Sweet! I'll have a look at them.

@xXGoziXx
Copy link
Author

xXGoziXx commented Aug 27, 2024

It would be so cool if I could trigger an endpoint that highlighted certain verses. I have so many ideas haha.
But yeah Youversion would have to make their own api that let's developers empower users with more features.

@xXGoziXx
Copy link
Author

xXGoziXx commented Aug 27, 2024

Like for example, if a user is viewing a verse online on some website, someone could make an extension that lets users click on the verse which shows a context menu that allows them to highlight/add a note to the verse in their Youversion bible, so they can look more into it later.

@Haluska77
Copy link
Contributor

Hey men, fantastic API. I used it for my Homeassistant project, that gives me verse of the day in picture and in word.
I adjusted the url for localize purpose as my native language is slovak.
Maybe this could be an enhancement for this api.
Thank you so much for that. God bless you.

@Glowstudent777
Copy link
Owner

Hi @Haluska77 ,

I will certainly look into this but from my understanding locales are done through versions. For example I believe NR06 is Italian. Here's an example of the version file that includes localized versions:

{
  "AMP": 1588,
  "ICL00D": 1196,
  "KJV": 1,
  "NIV": 111,
  "NLT": 116,
  "NR06": 122,
  "VULG": 823
}

https://github.com/Glowstudent777/YouVersion-API/blob/main/src%2Fapi%2Fv1%2Fdb%2Fversions.json

If this isn't the case please respond with your modifications and I'll look into providing locales correctly.

Best Regards,
Glow

@Haluska77
Copy link
Contributor

I simply put location:
https://www.bible.com/sk/verse-of-the-day
Versions you provided are bible versions. But each location has some 'default' bible version. For my purpose and many others might be enough to have at least one local version.

@Glowstudent777
Copy link
Owner

Hi @Haluska77,

Thank you for the info, I'll get started on this soon. Is this the same or similar for verses or just the votd? I'll add SK to the locales and anymore you can think of.

Best Regards,
Glow

@Haluska77
Copy link
Contributor

In the following link
https://www.bible.com/sk/bible/1/JHN.1.KJV
There is sk localisation that makes your web in the sk language. But verse is written in the KJV bible version (code 1)

@Glowstudent777
Copy link
Owner

Resolved localization for VOTD in #8 / #9 (fixed tests for the original pr)

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