# Apibible.BooksApi

All URIs are relative to *https://api.scripture.api.bible*

Method | HTTP request | Description
------------- | ------------- | -------------
[**getBook**](BooksApi.md#getBook) | **GET** /v1/bibles/{bibleId}/books/{bookId} | 
[**getBooks**](BooksApi.md#getBooks) | **GET** /v1/bibles/{bibleId}/books | 


<a name="getBook"></a>
# **getBook**
> InlineResponse2003 getBook(apiKey, bibleId, bookId, opts)



Gets a single &#x60;Book&#x60; object for a given &#x60;bibleId&#x60; and &#x60;bookId&#x60; 

### Example
```javascript
var Apibible = require('apibible');

var apiInstance = new Apibible.BooksApi();

var apiKey = "apiKey_example"; // String | API Key Authentication Parameter

var bibleId = "bibleId_example"; // String | Id of Bible whose Book to fetch

var bookId = "bookId_example"; // String | Id of the Book to fetch

var opts = { 
  'includeChapters': true // Boolean | Boolean indicating if an array of chapter summaries should be included in the results. Defaults to false. 
};
apiInstance.getBook(apiKey, bibleId, bookId, opts).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **apiKey** | **String**| API Key Authentication Parameter | 
 **bibleId** | **String**| Id of Bible whose Book to fetch | 
 **bookId** | **String**| Id of the Book to fetch | 
 **includeChapters** | **Boolean**| Boolean indicating if an array of chapter summaries should be included in the results. Defaults to false.  | [optional] 

### Return type

[**InlineResponse2003**](InlineResponse2003.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

<a name="getBooks"></a>
# **getBooks**
> InlineResponse2002 getBooks(apiKey, bibleId, opts)



Gets an array of &#x60;Book&#x60; objects for a given &#x60;bibleId&#x60; 

### Example
```javascript
var Apibible = require('apibible');

var apiInstance = new Apibible.BooksApi();

var apiKey = "apiKey_example"; // String | API Key Authentication Parameter

var bibleId = "bibleId_example"; // String | Id of Bible whose Book to fetch

var opts = { 
  'includeChapters': true // Boolean | Boolean indicating if an array of chapter summaries should be included in the results. Defaults to false. 
  'includeChaptersAndSections': true // Boolean | Boolean indicating if an array of chapter summaries and an array of sections should be included in the results. Defaults to false. 
};
apiInstance.getBooks(apiKey, bibleId, opts).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **apiKey** | **String**| API Key Authentication Parameter | 
 **bibleId** | **String**| Id of Bible whose Book to fetch | 
 **includeChapters** | **Boolean**| Boolean indicating if an array of chapter summaries should be included in the results. Defaults to false.  | [optional] 
 **includeChaptersAndSections** | **Boolean**| Boolean indicating if an array of chapter summaries and an array of sections should be included in the results. Defaults to false.  | [optional] 

### Return type

[**InlineResponse2002**](InlineResponse2002.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

