Skip to content

Latest commit

 

History

History
1067 lines (740 loc) · 30.9 KB

AISearchApi.md

File metadata and controls

1067 lines (740 loc) · 30.9 KB

QuantClient\AISearchApi

All URIs are relative to https://dashboard.quantcdn.io, except if the operation defines another base path.

Method HTTP request Description
aiSearchChat() POST /api/v3/organisations/{organisation}/projects/{project}/ai-search/chat RAG chat with AI Search content
aiSearchDeletePages() DELETE /api/v3/organisations/{organisation}/projects/{project}/ai-search/pages Delete pages by URLs or patterns
aiSearchDisable() POST /api/v3/organisations/{organisation}/projects/{project}/ai-search/disable Disable AI Search for a project
aiSearchEnable() POST /api/v3/organisations/{organisation}/projects/{project}/ai-search/enable Enable AI Search for a project
aiSearchGetCrawl() GET /api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls/{jobId} Get AI Search ingest job status
aiSearchGetCrawlPages() GET /api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls/{jobId}/pages Get per-page ingest results for a crawl job
aiSearchGetSettings() GET /api/v3/organisations/{organisation}/projects/{project}/ai-search/settings Get AI Search public access and rate limit settings
aiSearchIngestPages() POST /api/v3/organisations/{organisation}/projects/{project}/ai-search/pages Ingest pages into the AI Search index
aiSearchListCrawls() GET /api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls List AI Search ingest jobs
aiSearchListPages() GET /api/v3/organisations/{organisation}/projects/{project}/ai-search/pages List indexed pages with cursor pagination
aiSearchPurgeIndex() DELETE /api/v3/organisations/{organisation}/projects/{project}/ai-search/index Purge the entire AI Search index
aiSearchSearch() POST /api/v3/organisations/{organisation}/projects/{project}/ai-search/search Semantic search across the AI Search index
aiSearchStatus() GET /api/v3/organisations/{organisation}/projects/{project}/ai-search Get AI Search status for a project
aiSearchTopQueries() GET /api/v3/organisations/{organisation}/projects/{project}/ai-search/top-queries Get the most popular AI Search queries
aiSearchTriggerCrawl() POST /api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls Trigger a crawler run that ingests into AI Search
aiSearchUpdateSettings() PUT /api/v3/organisations/{organisation}/projects/{project}/ai-search/settings Update AI Search public access and rate limit settings
aiSearchUsage() GET /api/v3/organisations/{organisation}/projects/{project}/ai-search/usage Get usage statistics for the AI Search site

aiSearchChat()

aiSearchChat($organisation, $project, $ai_search_chat_request)

RAG chat with AI Search content

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: BearerAuth
$config = QuantClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new QuantClient\Api\AISearchApi(
    // 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
);
$organisation = 'organisation_example'; // string
$project = 'project_example'; // string
$ai_search_chat_request = new \QuantClient\Model\AiSearchChatRequest(); // \QuantClient\Model\AiSearchChatRequest

try {
    $apiInstance->aiSearchChat($organisation, $project, $ai_search_chat_request);
} catch (Exception $e) {
    echo 'Exception when calling AISearchApi->aiSearchChat: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
organisation string
project string
ai_search_chat_request \QuantClient\Model\AiSearchChatRequest

Return type

void (empty response body)

Authorization

BearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

aiSearchDeletePages()

aiSearchDeletePages($organisation, $project, $ai_search_delete_pages_request)

Delete pages by URLs or patterns

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: BearerAuth
$config = QuantClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new QuantClient\Api\AISearchApi(
    // 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
);
$organisation = 'organisation_example'; // string
$project = 'project_example'; // string
$ai_search_delete_pages_request = new \QuantClient\Model\AiSearchDeletePagesRequest(); // \QuantClient\Model\AiSearchDeletePagesRequest

try {
    $apiInstance->aiSearchDeletePages($organisation, $project, $ai_search_delete_pages_request);
} catch (Exception $e) {
    echo 'Exception when calling AISearchApi->aiSearchDeletePages: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
organisation string
project string
ai_search_delete_pages_request \QuantClient\Model\AiSearchDeletePagesRequest

Return type

void (empty response body)

Authorization

BearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

aiSearchDisable()

aiSearchDisable($organisation, $project)

Disable AI Search for a project

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: BearerAuth
$config = QuantClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new QuantClient\Api\AISearchApi(
    // 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
);
$organisation = 'organisation_example'; // string
$project = 'project_example'; // string

try {
    $apiInstance->aiSearchDisable($organisation, $project);
} catch (Exception $e) {
    echo 'Exception when calling AISearchApi->aiSearchDisable: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
organisation string
project string

Return type

void (empty response body)

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

aiSearchEnable()

aiSearchEnable($organisation, $project, $ai_search_enable_request)

Enable AI Search for a project

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: BearerAuth
$config = QuantClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new QuantClient\Api\AISearchApi(
    // 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
);
$organisation = 'organisation_example'; // string
$project = 'project_example'; // string
$ai_search_enable_request = new \QuantClient\Model\AiSearchEnableRequest(); // \QuantClient\Model\AiSearchEnableRequest

try {
    $apiInstance->aiSearchEnable($organisation, $project, $ai_search_enable_request);
} catch (Exception $e) {
    echo 'Exception when calling AISearchApi->aiSearchEnable: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
organisation string
project string
ai_search_enable_request \QuantClient\Model\AiSearchEnableRequest [optional]

Return type

void (empty response body)

Authorization

BearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

aiSearchGetCrawl()

aiSearchGetCrawl($organisation, $project, $job_id)

Get AI Search ingest job status

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: BearerAuth
$config = QuantClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new QuantClient\Api\AISearchApi(
    // 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
);
$organisation = 'organisation_example'; // string
$project = 'project_example'; // string
$job_id = 'job_id_example'; // string

try {
    $apiInstance->aiSearchGetCrawl($organisation, $project, $job_id);
} catch (Exception $e) {
    echo 'Exception when calling AISearchApi->aiSearchGetCrawl: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
organisation string
project string
job_id string

Return type

void (empty response body)

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

aiSearchGetCrawlPages()

aiSearchGetCrawlPages($organisation, $project, $job_id, $limit, $status_code, $processing_status)

Get per-page ingest results for a crawl job

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: BearerAuth
$config = QuantClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new QuantClient\Api\AISearchApi(
    // 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
);
$organisation = 'organisation_example'; // string
$project = 'project_example'; // string
$job_id = 'job_id_example'; // string
$limit = 56; // int
$status_code = 56; // int
$processing_status = 'processing_status_example'; // string

try {
    $apiInstance->aiSearchGetCrawlPages($organisation, $project, $job_id, $limit, $status_code, $processing_status);
} catch (Exception $e) {
    echo 'Exception when calling AISearchApi->aiSearchGetCrawlPages: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
organisation string
project string
job_id string
limit int [optional]
status_code int [optional]
processing_status string [optional]

Return type

void (empty response body)

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

aiSearchGetSettings()

aiSearchGetSettings($organisation, $project)

Get AI Search public access and rate limit settings

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: BearerAuth
$config = QuantClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new QuantClient\Api\AISearchApi(
    // 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
);
$organisation = 'organisation_example'; // string
$project = 'project_example'; // string

try {
    $apiInstance->aiSearchGetSettings($organisation, $project);
} catch (Exception $e) {
    echo 'Exception when calling AISearchApi->aiSearchGetSettings: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
organisation string
project string

Return type

void (empty response body)

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

aiSearchIngestPages()

aiSearchIngestPages($organisation, $project, $ai_search_ingest_pages_request)

Ingest pages into the AI Search index

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: BearerAuth
$config = QuantClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new QuantClient\Api\AISearchApi(
    // 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
);
$organisation = 'organisation_example'; // string
$project = 'project_example'; // string
$ai_search_ingest_pages_request = new \QuantClient\Model\AiSearchIngestPagesRequest(); // \QuantClient\Model\AiSearchIngestPagesRequest

try {
    $apiInstance->aiSearchIngestPages($organisation, $project, $ai_search_ingest_pages_request);
} catch (Exception $e) {
    echo 'Exception when calling AISearchApi->aiSearchIngestPages: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
organisation string
project string
ai_search_ingest_pages_request \QuantClient\Model\AiSearchIngestPagesRequest

Return type

void (empty response body)

Authorization

BearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

aiSearchListCrawls()

aiSearchListCrawls($organisation, $project, $limit)

List AI Search ingest jobs

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: BearerAuth
$config = QuantClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new QuantClient\Api\AISearchApi(
    // 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
);
$organisation = 'organisation_example'; // string
$project = 'project_example'; // string
$limit = 56; // int

try {
    $apiInstance->aiSearchListCrawls($organisation, $project, $limit);
} catch (Exception $e) {
    echo 'Exception when calling AISearchApi->aiSearchListCrawls: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
organisation string
project string
limit int [optional]

Return type

void (empty response body)

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

aiSearchListPages()

aiSearchListPages($organisation, $project, $limit, $cursor, $search)

List indexed pages with cursor pagination

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: BearerAuth
$config = QuantClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new QuantClient\Api\AISearchApi(
    // 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
);
$organisation = 'organisation_example'; // string
$project = 'project_example'; // string
$limit = 56; // int
$cursor = 'cursor_example'; // string
$search = 'search_example'; // string

try {
    $apiInstance->aiSearchListPages($organisation, $project, $limit, $cursor, $search);
} catch (Exception $e) {
    echo 'Exception when calling AISearchApi->aiSearchListPages: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
organisation string
project string
limit int [optional]
cursor string [optional]
search string [optional]

Return type

void (empty response body)

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

aiSearchPurgeIndex()

aiSearchPurgeIndex($organisation, $project)

Purge the entire AI Search index

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: BearerAuth
$config = QuantClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new QuantClient\Api\AISearchApi(
    // 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
);
$organisation = 'organisation_example'; // string
$project = 'project_example'; // string

try {
    $apiInstance->aiSearchPurgeIndex($organisation, $project);
} catch (Exception $e) {
    echo 'Exception when calling AISearchApi->aiSearchPurgeIndex: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
organisation string
project string

Return type

void (empty response body)

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

aiSearchSearch()

aiSearchSearch($organisation, $project, $ai_search_search_request)

Semantic search across the AI Search index

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: BearerAuth
$config = QuantClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new QuantClient\Api\AISearchApi(
    // 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
);
$organisation = 'organisation_example'; // string
$project = 'project_example'; // string
$ai_search_search_request = new \QuantClient\Model\AiSearchSearchRequest(); // \QuantClient\Model\AiSearchSearchRequest

try {
    $apiInstance->aiSearchSearch($organisation, $project, $ai_search_search_request);
} catch (Exception $e) {
    echo 'Exception when calling AISearchApi->aiSearchSearch: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
organisation string
project string
ai_search_search_request \QuantClient\Model\AiSearchSearchRequest

Return type

void (empty response body)

Authorization

BearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

aiSearchStatus()

aiSearchStatus($organisation, $project)

Get AI Search status for a project

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: BearerAuth
$config = QuantClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new QuantClient\Api\AISearchApi(
    // 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
);
$organisation = 'organisation_example'; // string
$project = 'project_example'; // string

try {
    $apiInstance->aiSearchStatus($organisation, $project);
} catch (Exception $e) {
    echo 'Exception when calling AISearchApi->aiSearchStatus: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
organisation string
project string

Return type

void (empty response body)

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

aiSearchTopQueries()

aiSearchTopQueries($organisation, $project, $range, $limit)

Get the most popular AI Search queries

A site with queryTextRetention hash keeps no query text: its queries are grouped by a keyed hash and listed as query 'Hidden query #<8 hex>' with hashed=true and queryHash. A site with none adds no rows. hashedQueries counts the hashed rows.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: BearerAuth
$config = QuantClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new QuantClient\Api\AISearchApi(
    // 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
);
$organisation = 'organisation_example'; // string
$project = 'project_example'; // string
$range = '30d'; // string
$limit = 56; // int

try {
    $apiInstance->aiSearchTopQueries($organisation, $project, $range, $limit);
} catch (Exception $e) {
    echo 'Exception when calling AISearchApi->aiSearchTopQueries: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
organisation string
project string
range string [optional] [default to '30d']
limit int [optional]

Return type

void (empty response body)

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

aiSearchTriggerCrawl()

aiSearchTriggerCrawl($organisation, $project, $ai_search_trigger_crawl_request)

Trigger a crawler run that ingests into AI Search

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: BearerAuth
$config = QuantClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new QuantClient\Api\AISearchApi(
    // 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
);
$organisation = 'organisation_example'; // string
$project = 'project_example'; // string
$ai_search_trigger_crawl_request = new \QuantClient\Model\AiSearchTriggerCrawlRequest(); // \QuantClient\Model\AiSearchTriggerCrawlRequest

try {
    $apiInstance->aiSearchTriggerCrawl($organisation, $project, $ai_search_trigger_crawl_request);
} catch (Exception $e) {
    echo 'Exception when calling AISearchApi->aiSearchTriggerCrawl: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
organisation string
project string
ai_search_trigger_crawl_request \QuantClient\Model\AiSearchTriggerCrawlRequest

Return type

void (empty response body)

Authorization

BearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

aiSearchUpdateSettings()

aiSearchUpdateSettings($organisation, $project, $ai_search_update_settings_request)

Update AI Search public access and rate limit settings

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: BearerAuth
$config = QuantClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new QuantClient\Api\AISearchApi(
    // 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
);
$organisation = 'organisation_example'; // string
$project = 'project_example'; // string
$ai_search_update_settings_request = new \QuantClient\Model\AiSearchUpdateSettingsRequest(); // \QuantClient\Model\AiSearchUpdateSettingsRequest

try {
    $apiInstance->aiSearchUpdateSettings($organisation, $project, $ai_search_update_settings_request);
} catch (Exception $e) {
    echo 'Exception when calling AISearchApi->aiSearchUpdateSettings: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
organisation string
project string
ai_search_update_settings_request \QuantClient\Model\AiSearchUpdateSettingsRequest

Return type

void (empty response body)

Authorization

BearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

aiSearchUsage()

aiSearchUsage($organisation, $project, $range)

Get usage statistics for the AI Search site

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: BearerAuth
$config = QuantClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new QuantClient\Api\AISearchApi(
    // 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
);
$organisation = 'organisation_example'; // string
$project = 'project_example'; // string
$range = '30d'; // string

try {
    $apiInstance->aiSearchUsage($organisation, $project, $range);
} catch (Exception $e) {
    echo 'Exception when calling AISearchApi->aiSearchUsage: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
organisation string
project string
range string [optional] [default to '30d']

Return type

void (empty response body)

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]