4
0
api-powers/src/c99e85a0-d120-4f25-bcbf-0940dd7b773b/README.md

59 lines
1.9 KiB
Markdown
Raw Permalink Normal View History

2023-09-26 06:24:03 +00:00
```
██████╗ ██████╗ ██╗ ██╗███████╗██████╗
██╔══██╗██╔═══██╗██║ ██║██╔════╝██╔══██╗
██████╔╝██║ ██║██║ █╗ ██║█████╗ ██████╔╝
██╔═══╝ ██║ ██║██║███╗██║██╔══╝ ██╔══██╗
██║ ╚██████╔╝╚███╔███╔╝███████╗██║ ██║
╚═╝ ╚═════╝ ╚══╝╚══╝ ╚══════╝╚═╝ ╚═╝
```
# final class Response (Details)
2024-04-06 13:05:35 +00:00
> namespace: **TrueChristianChurch\Joomla\GetBible\Utilities**
2023-09-26 06:24:03 +00:00
```uml
@startuml
2023-10-07 12:23:18 +00:00
class Response << (F,LightGreen) >> #RoyalBlue {
2023-09-26 06:24:03 +00:00
+ get(JoomlaResponse $response, int $expectedCode = 200, ...) : mixed
# getBody(JoomlaResponse $response, mixed $default = null) : mixed
# error(JoomlaResponse $response) : string
}
note right of Response::get
Process the response and decode it.
since: 2.0.1
return: mixed
arguments:
JoomlaResponse $response
int $expectedCode = 200
mixed $default = null
end note
note right of Response::getBody
Return the body from the response
since: 2.0.1
return: mixed
end note
note right of Response::error
Get the error message from the GetBible API response
since: 2.0.1
return: string
end note
@enduml
```
---
```
██╗ ██████╗██████╗
██║██╔════╝██╔══██╗
██║██║ ██████╔╝
██ ██║██║ ██╔══██╗
╚█████╔╝╚██████╗██████╔╝
╚════╝ ╚═════╝╚═════╝
```
> Build with [Joomla Component Builder](https://git.vdm.dev/joomla/Component-Builder)