RestHelper.php
Table of Contents
Functions
- getAuthorizationHeader() : mixed
- Get header Authorization
- getBearerToken() : mixed
- get access token from header
- api_error() : array<string|int, mixed>
- Returns an API Error
- api_success() : array<string|int, mixed>
- Returns an API Success
Functions
getAuthorizationHeader()
Get header Authorization
getAuthorizationHeader() : mixed
getBearerToken()
get access token from header
getBearerToken() : mixed
api_error()
Returns an API Error
api_error(mixed $error[, array<string|int, mixed> $fields = [] ]) : array<string|int, mixed>
Parameters
- $error : mixed
-
Error Message
- $fields : array<string|int, mixed> = []
-
Fields
Return values
array<string|int, mixed>api_success()
Returns an API Success
api_success(mixed $data) : array<string|int, mixed>
Parameters
- $data : mixed
-
Data