54 lines
1.0 KiB
Plaintext
54 lines
1.0 KiB
Plaintext
/**
|
|
* get Bible API url
|
|
*
|
|
* @return string The API Endpoint
|
|
* @since 2.0.1
|
|
*/
|
|
protected function getEndpoint(): ?string
|
|
{
|
|
return $this->schema . '://' . $this->domain . '/' . $this->version . '/';
|
|
}
|
|
|
|
/**
|
|
* get Bible API Schema
|
|
*
|
|
* @return string The Get Bible Schema
|
|
* @since 2.0.1
|
|
*/
|
|
protected function getSchema(): ?string
|
|
{
|
|
return 'https';
|
|
}
|
|
|
|
/**
|
|
* get Bible API domain
|
|
*
|
|
* @return string The Get Bible Domain
|
|
* @since 2.0.1
|
|
*/
|
|
protected function getDomain(): ?string
|
|
{
|
|
return 'api.getbible.net';
|
|
}
|
|
|
|
/**
|
|
* get Bible version
|
|
*
|
|
* @return string The Get Bible Version
|
|
* @since 2.0.1
|
|
*/
|
|
protected function getVersion(): ?string
|
|
{
|
|
return 'v2';
|
|
}
|
|
|
|
/**
|
|
* get Daily Scripture URL
|
|
*
|
|
* @return string The Get Daily Scripture URL
|
|
* @since 2.0.1
|
|
*/
|
|
protected function getDailyscriptureurl(): ?string
|
|
{
|
|
return 'https://raw.githubusercontent.com/trueChristian/daily-scripture/master/README.today';
|
|
} |