# wp-parsely/3.14.0/src/RemoteAPI/interface-remote-api.php

Parse.ly, version 3.14.0. 39 lines.

- Page: https://pluginprobe.com/plugins/wp-parsely/3.14.0/code/src/RemoteAPI/interface-remote-api.php
- Raw: https://pluginprobe.com/plugins/wp-parsely/3.14.0/raw/src/RemoteAPI/interface-remote-api.php
- Modified: 2024-03-12T09:31:56+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/wp-parsely/3.14.0/code/src/RemoteAPI/interface-remote-api.php#L10-L20`.

```php
<?php
/**
 * Remote API: Interface
 *
 * @package Parsely
 * @since   3.2.0
 */

declare(strict_types=1);

namespace Parsely\RemoteAPI;

use WP_Error;

/**
 * Remote API Interface.
 */
interface Remote_API_Interface {
	/**
	 * Returns the items provided by this interface.
	 *
	 * @param array<string, mixed> $query The query arguments to send to the remote API.
	 * @param bool                 $associative (optional) When TRUE, returned objects will be converted into
	 *                             associative arrays.
	 * @return array<string, mixed>|object|WP_Error
	 */
	public function get_items( array $query, bool $associative = false );

	/**
	 * Returns whether the endpoint is available for access by the current
	 * user.
	 *
	 * @since 3.14.0 Renamed from `is_user_allowed_to_make_api_call()`.
	 *
	 * @return bool
	 */
	public function is_available_to_current_user(): bool;
}

```
