This web site is in fact a consumer of the API, as is our apps. For the web site we used Google Angular to render the UI, so it's 100% javascript based.
You'll need the language to search. The Language-json also includes the optional Authors.
https://BahaiPrayers.net/api/ai/languages
Pass in the Language and search. Author is optional.
https://BahaiPrayers.net/api/ai/search?query=love&language=english&author=Baha%27u%27llah
You'll need to POST to get the result:
return $http({
method: 'POST',
url: https://BahaiPrayers.net/api/ai/GetHtmlPost',
data: { documentId: documentId, language: language, highlight: highlight }
});
Gets the all important LanguageId needed for all the API calls.
https://BahaiPrayers.net/api/prayer/Languages
Tags tell you what topic the Prayer is for. Example, "Healing". In this example LanguageId of '1' is requested.
https://BahaiPrayers.net/api/prayer/tags?languageid=1
In this example LanguageId of '1' is requested and simple HTML encoding is added. We add italic, h1,h2 and p to the right places. If no HTML is desired, plain text is returned with CRLF's for new lines.
https://BahaiPrayers.net/api/prayer/prayersystembylanguage?html=true&languageid=1
Gets the all important LanguageId needed for all the Ridvan API calls.
https://BahaiPrayers.net/api/prayer/RidvanLanguages
Pass in the language id
https://BahaiPrayers.net/api/prayer/RidvansByLanguage?languageid=1
Gets the all important LanguageId needed for all the Kitáb-i-Aqdas API calls.
https://BahaiPrayers.net/api/prayer/AqdasLanguages
Pass in the language id and if you want the result formatted into html with links to notes and Questions and Answers.
https://BahaiPrayers.net/api/prayer/AqdasByLanguage?languageid=1&html=true
Pass in the language ids
https://bahaiprayers.net/api/prayer/AqdasMatrixByLanguages?languageid1=1&languageid2=3
Gets the all important LanguageId needed for all the Hidden Words API calls.
https://BahaiPrayers.net/api/prayer/HiddenLanguages
Pass in the language id
https://BahaiPrayers.net/api/prayer/HiddensByLanguage?languageid=1
Pass in the language ids
https://BahaiPrayers.net/api/prayer/HiddensMatrixByLanguages?languageid1=1&languageid2=2
Gets the all important LanguageId needed for all the Gleaning API calls.
https://BahaiPrayers.net/api/prayer/GleaningLanguages
Pass in the language id
https://BahaiPrayers.net/api/prayer/GleaningsByLanguage?languageid=1
Pass in the language ids
https://BahaiPrayers.net/api/prayer/GleaningsMatrixByLanguages?languageid1=1&languageid2=3
Gets the all important LanguageId needed for all the Prayers and Meditations API calls.
https://BahaiPrayers.net/api/prayer/PMLanguages
Pass in the language id
https://BahaiPrayers.net/api/prayer/PMsByLanguage?languageid=1
Pass in the language ids
https://BahaiPrayers.net/api/prayer/PMsMatrixByLanguages?languageid1=1&languageid2=3
Gets the all important LanguageId
https://BahaiPrayers.net/api/prayer/TabLanguages
Pass in the language id
https://BahaiPrayers.net/api/prayer/TabsByLanguage?languageid=1
Pass in the language ids
https://BahaiPrayers.net/api/prayer/TabsMatrixByLanguages?languageid1=1&languageid2=3
Gets the all important LanguageId needed for all the Iqan API calls.
https://BahaiPrayers.net/api/prayer/IqanLanguages
Pass in the language id
https://BahaiPrayers.net/api/prayer/IqansByLanguage?languageid=1
Pass in the language ids
https://BahaiPrayers.net/api/prayer/IqansMatrixByLanguages?languageid1=1&languageid2=3
Gets the all important LanguageId needed for all the SAQ API calls.
https://BahaiPrayers.net/api/prayer/SaqLanguages
Pass in the language id
https://BahaiPrayers.net/api/prayer/SaqPartsByLanguage?languageid=1
Pass in the language id
https://BahaiPrayers.net/api/prayer/SaqTopicsByLanguage?languageid=1
Gets the all important LanguageId needed for all the Days of Remembrance API calls.
https://BahaiPrayers.net/api/prayer/DaysRememberLanguages
Pass in the language id
https://BahaiPrayers.net/api/prayer/DaysRemembersByLanguage?languageid=1