Skip to content

Latest commit

 

History

History
68 lines (46 loc) · 2.33 KB

VectorSearchQuestionsApi.md

File metadata and controls

68 lines (46 loc) · 2.33 KB

Wordlift\Client\VectorSearchQuestionsApi

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

Method HTTP request Description
createVectorSearchQuestion() POST /vector-search/questions-collection Create

createVectorSearchQuestion()

createVectorSearchQuestion($vector_search_question_request): \Wordlift\Client\Model\PageVectorSearchQuestionResponseItem

Create

Example

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


// Configure API key authorization: ApiKey
$config = Wordlift\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Wordlift\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');


$apiInstance = new Wordlift\Client\Api\VectorSearchQuestionsApi(
    // 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
);
$vector_search_question_request = new \Wordlift\Client\Model\VectorSearchQuestionRequest(); // \Wordlift\Client\Model\VectorSearchQuestionRequest

try {
    $result = $apiInstance->createVectorSearchQuestion($vector_search_question_request);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VectorSearchQuestionsApi->createVectorSearchQuestion: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
vector_search_question_request \Wordlift\Client\Model\VectorSearchQuestionRequest

Return type

\Wordlift\Client\Model\PageVectorSearchQuestionResponseItem

Authorization

ApiKey

HTTP request headers

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

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