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

Parse.ly, version 3.7.1. 36 lines.

- Page: https://pluginprobe.com/plugins/wp-parsely/3.7.1/code/src/RemoteAPI/interface-remote-api.php
- Raw: https://pluginprobe.com/plugins/wp-parsely/3.7.1/raw/src/RemoteAPI/interface-remote-api.php
- Modified: 2023-02-27T12:36:48+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.7.1/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 WP_Error|array<string, mixed>|false
	 */
	public function get_items( $query, $associative = false );

	/**
	 * Checks if the current user is allowed to make the API call.
	 *
	 * @return bool
	 */
	public function is_user_allowed_to_make_api_call(): bool;
}

```
