public function post($method, $params = [], $headers = [])
    {
        return $this->makeRequest($method, self::METHOD_POST, $params, $headers);
    }
public function post($method, $params = [], $headers = [])
    {
        return $this->makeRequest($method, self::METHOD_POST, $params, $headers);
    }
public function post ( $ method , $ params = [ ] , $ headers = [ ] ) { return $ this -> makeRequest ( $ method , self :: METHOD_POST , $ params , $ headers ) ; }
Post to an endpoint.

@param  string $method The API method to call, e.g. '/shifts/publish/'
@param  array $params An array of data used to create the object.
@param  array $headers Array of custom headers to be passed
@return array           Object of json decoded API response.
Post to an endpoint .