All URIs are relative to https://api.qase.io/v1, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
search() | GET /search | Search entities by Qase Query Language (QQL) |
search($query, $limit, $offset): \Qase\APIClientV1\Model\SearchResponse
Search entities by Qase Query Language (QQL)
This method allows to retrieve data sets for various entities using expressions with conditions.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: TokenAuth
$config = Qase\APIClientV1\Configuration::getDefaultConfiguration()->setApiKey('Token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Qase\APIClientV1\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Token', 'Bearer');
$apiInstance = new Qase\APIClientV1\Api\SearchApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$query = 'query_example'; // string | Expression in Qase Query Language.
$limit = 10; // int | A number of entities in result set.
$offset = 0; // int | How many entities should be skipped.
try {
$result = $apiInstance->search($query, $limit, $offset);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SearchApi->search: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
query | string | Expression in Qase Query Language. | |
limit | int | A number of entities in result set. | [optional] [default to 10] |
offset | int | How many entities should be skipped. | [optional] [default to 0] |
\Qase\APIClientV1\Model\SearchResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]