PluginProbe
Bookit — Booking & Appointment Calendar / 2.6.0.5
Bookit — Booking & Appointment Calendar v2.6.0.5
2.6.0.5 2.6.0.4 2.6.0.3 2.6.0.2 2.6.0.1 2.6.0 trunk 1.2 1.2.2 1.2.3 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 All 62 releases
bookit / src / Bookit / Gateways / Contracts / WhoDat_Interface.php

WhoDat_Interface.php in Bookit — Booking & Appointment Calendar 2.6.0.5, at src/Bookit/Gateways/Contracts/WhoDat_Interface.php

61 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Bookit\Gateways\Contracts;
4
5 /**
6 * WhoDat Interface
7 *
8 * @since 2.5.0
9 *
10 * @package Bookit\Gateways\Contracts
11 */
12 interface WhoDat_Interface {
13
14 /**
15 * Send a GET request to WhoDat.
16 *
17 * @since 2.5.0
18 *
19 * @param string $endpoint
20 * @param array $query_args
21 *
22 * @return mixed|null
23 */
24 public function get( $endpoint, array $query_args );
25
26 /**
27 * Get REST API endpoint URL for requests.
28 *
29 * @since 2.5.0
30 *
31 * @param string $endpoint The endpoint path.
32 * @param array $query_args Query args appended to the URL.
33 *
34 * @return string The API URL.
35 */
36 public function get_api_url( $endpoint, array $query_args = [] );
37
38 /**
39 * Log WhoDat errors.
40 *
41 * @since 2.5.0
42 *
43 * @param string $type
44 * @param string $message
45 * @param string $url
46 */
47 public function log_error( $type, $message, $url );
48
49 /**
50 * Send a POST request to WhoDat.
51 *
52 * @since 2.5.0
53 *
54 * @param string $endpoint
55 * @param array $query_args
56 * @param array $request_arguments
57 *
58 * @return array|null
59 */
60 public function post( $endpoint, array $query_args = [], array $request_arguments = [] );
61 }