Git Product home page Git Product logo

esv_bible's Introduction

ESV API Bible for Dart

Dart CI

A future based dart package for the ESV API from Crossway which can be used to fetch ESV bible passages.

This package requires an API key to fetch bible passages. You can secure an API key by creating a new application on the ESV API website.

Features

Getting started

  • Secure your API key at the ESV API website.
  • Import the package.
  • To fetch a passage, create an instance of the Passage class and provide the ESV API key in the constructor.
  • Call the text method to retrieve the PassageText object, call thehtml method to retrieve the PassageHtml object, call the search method to retrieve the PassageSearch object, and call the audio method to retrieve the PassageAudio object.

Usage

Basic passage text query:

import 'package:esv_bible/esv_bible.dart';

void main () async {
  const apiKey = 'your-api-key';

  final passage = Passage(apiKey);

  // PassageText
  final passageText = await passage.text('John 3:16');
  print(passageText.passages[0]);
}

Output:

John 3:16

For God So Loved the World

  [16] “For God so loved the world,(1) that he gave his only Son, that whoever believes in him should not perish but have eternal life.

Footnotes

(1) 3:16 Or *For this is how God loved the world*
 (ESV)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.