# Apibible.SectionsApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**getBookSections**](SectionsApi.md#getBookSections) | **GET** /v1/bibles/{bibleId}/books/{bookId}/sections | 
[**getChapterSections**](SectionsApi.md#getChapterSections) | **GET** /v1/bibles/{bibleId}/chapters/{chapterId}/sections | 
[**getSection**](SectionsApi.md#getSection) | **GET** /v1/bibles/{bibleId}/sections/{sectionId} | 


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



Gets an array of &#x60;Section&#x60; objects for a given &#x60;bibleId&#x60; and &#x60;bookId&#x60; 

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

var apiInstance = new Apibible.SectionsApi();

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

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

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

var opts = { 
  'contentType': "html", // String | Content type to be returned in the content property.  Supported values are `html` (default), `json` (beta), and `text` (beta)
  'includeNotes': false, // Boolean | Include footnotes in content
  'includeTitles': true, // Boolean | Include section titles in content
  'includeChapterNumbers': false, // Boolean | Include chapter numbers in content
  'includeVerseNumbers': true, // Boolean | Include verse numbers in content
  'parallels': "parallels_example" // String | Comma delimited list of bibleIds to include
};
apiInstance.getBookSections(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 Sections to fetch | 
 **bookId** | **String**| Id of the Book whose Sections to fetch | 
 **contentType** | **String**| Content type to be returned in the content property.  Supported values are &#x60;html&#x60; (default), &#x60;json&#x60; (beta), and &#x60;text&#x60; (beta) | [optional] [default to html]
 **includeNotes** | **Boolean**| Include footnotes in content | [optional] [default to false]
 **includeTitles** | **Boolean**| Include section titles in content | [optional] [default to true]
 **includeChapterNumbers** | **Boolean**| Include chapter numbers in content | [optional] [default to false]
 **includeVerseNumbers** | **Boolean**| Include verse numbers in content | [optional] [default to true]
 **parallels** | **String**| Comma delimited list of bibleIds to include | [optional] 

### Return type

[**InlineResponse2007**](InlineResponse2007.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="getChapterSections"></a>
# **getChapterSections**
> InlineResponse2007 getChapterSections(apiKey, bibleId, chapterId)



Gets an array of &#x60;Section&#x60; objects for a given &#x60;bibleId&#x60; and &#x60;chapterId&#x60; 

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

var apiInstance = new Apibible.SectionsApi();

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

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

var chapterId = "chapterId_example"; // String | Id of the Chapter whose Sections to fetch

apiInstance.getChapterSections(apiKey, bibleId, chapterId).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 Sections to fetch | 
 **chapterId** | **String**| Id of the Chapter whose Sections to fetch | 

### Return type

[**InlineResponse2007**](InlineResponse2007.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="getSection"></a>
# **getSection**
> InlineResponse2008 getSection(apiKey, bibleId, sectionId, opts)



Gets a single &#x60;Section&#x60; object for a given &#x60;bibleId&#x60; and &#x60;sectionId&#x60;. This Section object also includes an &#x60;content&#x60; property with all verses for the Section. 

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

var apiInstance = new Apibible.SectionsApi();

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

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

var sectionId = "sectionId_example"; // String | Id of the Section to fetch

var opts = { 
  'contentType': "html", // String | Content type to be returned in the content property.  Supported values are `html` (default), `json` (beta), and `text` (beta)
  'includeNotes': false, // Boolean | Include footnotes in content
  'includeTitles': true, // Boolean | Include section titles in content
  'includeChapterNumbers': false, // Boolean | Include chapter numbers in content
  'includeVerseNumbers': true, // Boolean | Include verse numbers in content
  'parallels': "parallels_example" // String | Comma delimited list of bibleIds to include
};
apiInstance.getSection(apiKey, bibleId, sectionId, 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 Section to fetch | 
 **sectionId** | **String**| Id of the Section to fetch | 
 **contentType** | **String**| Content type to be returned in the content property.  Supported values are &#x60;html&#x60; (default), &#x60;json&#x60; (beta), and &#x60;text&#x60; (beta) | [optional] [default to html]
 **includeNotes** | **Boolean**| Include footnotes in content | [optional] [default to false]
 **includeTitles** | **Boolean**| Include section titles in content | [optional] [default to true]
 **includeChapterNumbers** | **Boolean**| Include chapter numbers in content | [optional] [default to false]
 **includeVerseNumbers** | **Boolean**| Include verse numbers in content | [optional] [default to true]
 **parallels** | **String**| Comma delimited list of bibleIds to include | [optional] 

### Return type

[**InlineResponse2008**](InlineResponse2008.md)

### Authorization

No authorization required

### HTTP request headers

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

