Skip to content

Latest commit

 

History

History
62 lines (43 loc) · 1.75 KB

CommonApi.md

File metadata and controls

62 lines (43 loc) · 1.75 KB

Swagger\Client\CommonApi

All URIs are relative to https://api2.hiveos.farm/api/v2

Method HTTP request Description
searchGet GET /search Search farms, workers, etc.

searchGet

object searchGet($query)

Search farms, workers, etc.

Example

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

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

$apiInstance = new Swagger\Client\Api\CommonApi(
    // 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 | Search criteria

try {
    $result = $apiInstance->searchGet($query);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CommonApi->searchGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
query string Search criteria

Return type

object

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]