$revel
$revel : \Revel\Revel
$revel : \Revel\Revel
__construct(\Revel\Revel $revel)
Api constructor.
\Revel\Revel | $revel | Reference to the core {@link Revel} object. |
get(string $resource) : \Revel\Api\Response
GET resource data.
string | $resource | The API endpoint, relative to the domain. |
post(string $resource, array $body = array()) : \Revel\Api\Response
POST to a resource.
string | $resource | The API endpoint, relative to the domain. |
array | $body | The POST body. |
submit(\Revel\Models\Order $order) : integer
Submit an online order.
\Revel\Models\Order | $order | The order to submit. |
If the API returns any errors.
The order ID provided by Revel if the order was submitted successfully.
call(string $method, string $resource, array $body = array()) : \Revel\Api\Response
Perform a Revel API request.
string | $method | The HTTP method. |
string | $resource | The API endpoint, relative to the domain. |
array | $body | The request body. |