# bookit/2.6.0.5/src/Bookit/Gateways/Contracts/WhoDat_Interface.php

Bookit — Booking &amp; Appointment Calendar, version 2.6.0.5. 61 lines.

- Page: https://pluginprobe.com/plugins/bookit/2.6.0.5/code/src/Bookit/Gateways/Contracts/WhoDat_Interface.php
- Raw: https://pluginprobe.com/plugins/bookit/2.6.0.5/raw/src/Bookit/Gateways/Contracts/WhoDat_Interface.php
- Modified: 2026-09-14T17:08:02+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/bookit/2.6.0.5/code/src/Bookit/Gateways/Contracts/WhoDat_Interface.php#L10-L20`.

```php
<?php

namespace Bookit\Gateways\Contracts;

/**
 * WhoDat Interface
 *
 * @since 2.5.0
 *
 * @package Bookit\Gateways\Contracts
 */
interface WhoDat_Interface {

	/**
	 * Send a GET request to WhoDat.
	 *
	 * @since 2.5.0
	 *
	 * @param string $endpoint
	 * @param array  $query_args
	 *
	 * @return mixed|null
	 */
	public function get( $endpoint, array $query_args );

	/**
	 * Get REST API endpoint URL for requests.
	 *
	 * @since 2.5.0
	 *
	 * @param string $endpoint   The endpoint path.
	 * @param array  $query_args Query args appended to the URL.
	 *
	 * @return string The API URL.
	 */
	public function get_api_url( $endpoint, array $query_args = [] );

	/**
	 * Log WhoDat errors.
	 *
	 * @since 2.5.0
	 *
	 * @param string $type
	 * @param string $message
	 * @param string $url
	 */
	public function log_error( $type, $message, $url );

	/**
	 * Send a POST request to WhoDat.
	 *
	 * @since 2.5.0
	 *
	 * @param string $endpoint
	 * @param array  $query_args
	 * @param array  $request_arguments
	 *
	 * @return array|null
	 */
	public function post( $endpoint, array $query_args = [], array $request_arguments = [] );
}
```
