Welcome to LDS-API Client Demo!

See an example with code on how you might use this new lds scripture api.

Your Scripture

One verse at a time.

Purpose

Limitations

Usage

To make a call to the api, simply execute a GET function to the api server at 'http://honest.chat:1776" and pass a GET variable in the format: '/section/book/chapter'.

For example:

$ wget -O ot_gen_1.json "http://honest.chat:1776/?scrip=/ot/gen/1"

Code Example

An example javascript function utilizing a Promise is given for your programing copy-pasting convenience:


	function apiRequest(path){
		return new Promise(function(resolve){
		$.get('http://honest.chat:1776/?scrip=' + path)
			.done(function(e){
				verses = JSON.parse(e);
				console.log(verses);
				resolve(verses);
			});
		});

	};
		

Details

Here is a list of books with corresponding sections (e.g. Old Testament = ot, New Testament = nt, Book of Mormon = bofm, Doctrine and Covenants =dc, Pearl of Great Price = pogp):

pathBook
/ot/genGenesis
/ot/exExodus
/ot/levLeviticus
/ot/numNumbers
/ot/deutDeuteronomy
/ot/joshJoshua
/ot/judgJudges
/ot/ruthRuth
/ot/1-sam1 Samuel
/ot/2-sam2 Samuel
/ot/1-kgs1 Kings
/ot/2-kgs2 Kings
/ot/1-chr1 Chronicles
/ot/2-chr2 Chronicles
/ot/ezraEzra
/ot/nehNehemiah
/ot/esthEsther
/ot/jobJob
/ot/psPsalms
/ot/provProverbs
/ot/ecclEcclesiastes
/ot/songSong of Solomon
/ot/isaIsaiah
/ot/jerJeremiah
/ot/lamLamentations
/ot/ezekEzekiel
/ot/danDaniel
/ot/hoseaHosea
/ot/joelJoel
/ot/amosAmos
/ot/obad/1Obadiah
/ot/jonahJonah
/ot/micahMicah
/ot/nahumNahum
/ot/habHabakkuk
/ot/zephZephaniah
/ot/hagHaggai
/ot/zechZechariah
/ot/malMalachi
/nt/mattMatthew
/nt/markMark
/nt/lukeLuke
/nt/johnJohn
/nt/actsActs
/nt/romRomans
/nt/1-cor1 Corinthians
/nt/2-cor2 Corinthians
/nt/galGalatians
/nt/ephEphesians
/nt/philipPhilippians
/nt/colColossians
/nt/1-thes1 Thessalonians
/nt/2-thes2 Thessalonians
/nt/1-tim1 Timothy
/nt/2-tim2 Timothy
/nt/titusTitus
/nt/philem/1Philemon
/nt/hebHebrews
/nt/jamesJames
/nt/1-pet1 Peter
/nt/2-pet2 Peter
/nt/1-jn1 John
/nt/2-jn/12 John
/nt/3-jn/13 John
/nt/jude/1Jude
/nt/revRevelation
/bofm/1-ne1 Nephi
/bofm/2-ne2 Nephi
/bofm/jacobJacob
/bofm/enos/1Enos
/bofm/jarom/1Jarom
/bofm/omni/1Omni
/bofm/w-of-m/1Words of Mormon
/bofm/mosiahMosiah
/bofm/almaAlma
/bofm/helHelaman
/bofm/3-ne3 Nephi
/bofm/4-ne/14 Nephi
/bofm/mormMormon
/bofm/etherEther
/bofm/moroMoroni
/dc-testament/dcDoctrine and Covenants
/pgp/mosesMoses
/pgp/abrAbraham
/pgp/js-mJoseph Smith-Matthew
/pgp/js-hJoseph Smith-History
/pgp/a-of-fArticles of Faith

Contact me with any questions!