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)
    )
);
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.