Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
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.
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) ) );