Property | Type | Description | |
---|---|---|---|
$client | Placeholder for Guzzle REST client. | ||
$settings | Settings object. |
Method | Description | |
---|---|---|
__construct ( ) | Constructor. Takes no arguments. | |
__get ( $name ) | PHP "magic" getter. | |
__set ( $name, $value ) | PHP "magic" setter. |
Method | Description | |
---|---|---|
_console ( $data ) | Echos output and logs to console (and js console to make browser debugging easier). | |
_delete ( string $endpoint, string[] $query, boolean $customPostfix = false, boolean $dwollaParse = true ) : string[] | Wrapper around Guzzle DELETE request. | |
_error ( string $message ) : boolean | Small error message wrapper for missing parameters, etc. | |
_get ( string $endpoint, string[] $query, boolean $customPostfix = false, boolean $dwollaParse = true ) : string[] | Wrapper around Guzzle GET request. | |
_host ( ) : string | Returns default host URL dependent on sandbox flag. | |
_logtofile ( $data ) | Logs console messages to file for convenience. | |
_post ( string $endpoint, string $request, boolean $customPostfix = false, boolean $dwollaParse = true ) : String[] | Wrapper around Guzzle POST request. | |
_put ( string $endpoint, string $request, boolean $customPostfix = false, boolean $dwollaParse = true ) : String[] | Wrapper around Guzzle PUT request. |
Method | Description | |
---|---|---|
_dwollaparse ( String[] $response ) : String[] | Parses API response out of envelope and informs user of issues if they arise. |
protected _console ( $data ) | ||
$data | {???} Can be anything. |
protected _delete ( string $endpoint, string[] $query, boolean $customPostfix = false, boolean $dwollaParse = true ) : string[] | ||
$endpoint | string | API endpoint string |
$query | string[] | Array of URLEncoded query items in key-value pairs. |
$customPostfix | boolean | Use default REST postfix? |
$dwollaParse | boolean | Parse out of message envelope? |
return | string[] | Response body. |
protected _get ( string $endpoint, string[] $query, boolean $customPostfix = false, boolean $dwollaParse = true ) : string[] | ||
$endpoint | string | API endpoint string |
$query | string[] | Array of URLEncoded query items in key-value pairs. |
$customPostfix | boolean | Use default REST postfix? |
$dwollaParse | boolean | Parse out of message envelope? |
return | string[] | Response body. |
protected _logtofile ( $data ) | ||
$data | {???} Can be anything. |
protected _post ( string $endpoint, string $request, boolean $customPostfix = false, boolean $dwollaParse = true ) : String[] | ||
$endpoint | string | API endpoint string |
$request | string | Request body. JSON encoding is optional. |
$customPostfix | boolean | Use default REST postfix? |
$dwollaParse | boolean | Parse out of message envelope? |
return | String[] | Response body. |
protected _put ( string $endpoint, string $request, boolean $customPostfix = false, boolean $dwollaParse = true ) : String[] | ||
$endpoint | string | API endpoint string |
$request | string | Request body. JSON encoding is optional. |
$customPostfix | boolean | Use default REST postfix? |
$dwollaParse | boolean | Parse out of message envelope? |
return | String[] | Response body. |