Skip to content

Authentication

Alex Wyett edited this page Jan 13, 2017 · 2 revisions

In order to prevent access to the API to unauthenticated clients, we make use of a system known as HMAC to authenticate each request. HMAC operates by applying a secure hash function to the request parameters, an example of how to do this can be found in the examples folder.

Note

For post and put requests, please note that the provided data must be wrapped in an array with a key of 'data' (this is potentially for future enhancements), for example:

// Call a post end point
$response = ApiClient::post(
    '/post-endpoint',
    array(
        'data' => json_encode($requestData)
    )
);

Clone this wiki locally