All URIs are relative to https://api.inda.ai, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
mostRecentResumesGET() | GET /hr/v2/index/{indexname}/resumes/latest/ | Most Recent Resumes |
statsIndexGET() | GET /hr/v2/index/{indexname}/stats/ | Stats Index |
mostRecentResumesGET($indexname, $sort_by, $sort_order, $size): \OpenAPI\Client\Model\MostRecentResponse
Most Recent Resumes
Returns the size documents into the index indexname sorted by the field sort_by in the order sort_order. In the response, Hits indicates the number of documents retrieved, while Total indicates the number of documents in the index.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: APIKey
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\StartingWithIndicesApi(
// 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
);
$indexname = 'indexname_example'; // string
$sort_by = 'CreationDate'; // string | The field the results will be sorted by. Available options: <code style='color: #333333; opacity: 0.9'>\"CreationDate\"</code>, <code style='color: #333333; opacity: 0.9'>\"LastModified\"</code>
$sort_order = 'desc'; // string | The sort_order option can have the following values: <code style='color: #333333; opacity: 0.9'>\"asc\"</code>, <code style='color: #333333; opacity: 0.9'>\"desc\"</code>. The former will sort in ascending order, the latter in descending order.
$size = 20; // int | Number of resumes to be returned
try {
$result = $apiInstance->mostRecentResumesGET($indexname, $sort_by, $sort_order, $size);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling StartingWithIndicesApi->mostRecentResumesGET: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
indexname | string | ||
sort_by | string | The field the results will be sorted by. Available options: <code style='color: #333333; opacity: 0.9'>"CreationDate"</code>, <code style='color: #333333; opacity: 0.9'>"LastModified"</code> | [optional] [default to 'CreationDate'] |
sort_order | string | The sort_order option can have the following values: <code style='color: #333333; opacity: 0.9'>"asc"</code>, <code style='color: #333333; opacity: 0.9'>"desc"</code>. The former will sort in ascending order, the latter in descending order. | [optional] [default to 'desc'] |
size | int | Number of resumes to be returned | [optional] [default to 20] |
\OpenAPI\Client\Model\MostRecentResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
statsIndexGET($indexname, $doc_type): \OpenAPI\Client\Model\StatsIndex
Stats Index
This method returns the number of documents present in indexname, grouped by document types. To fetch information about a specific document type, please use the doc_type query parameter; allowed values are: + resume
for resumes; + job-ad
for job adverts; + application
for applications.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer authorization: APIKey
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\StartingWithIndicesApi(
// 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
);
$indexname = 'indexname_example'; // string
$doc_type = 'doc_type_example'; // string
try {
$result = $apiInstance->statsIndexGET($indexname, $doc_type);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling StartingWithIndicesApi->statsIndexGET: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
indexname | string | ||
doc_type | string | [optional] |
\OpenAPI\Client\Model\StatsIndex
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]