API for apicultural predictions and recommendations
For more information, please visit https://www.beekube.com.
PHP 8.1 and later.
To install the bindings via Composer, add the following to composer.json:
{
"require": {
"beekube-app/intelligence-sdk": "*"
}
}Then run composer install
Download the files and include autoload.php:
<?php
require_once('/path/to/intelligence-sdk/vendor/autoload.php');Please follow the installation procedure and then run the following:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Beekube\IntelligenceSDK\Api\DefaultApi(
// 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()
);
try {
$result = $apiInstance->healthCheckHealthGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->healthCheckHealthGet: ', $e->getMessage(), PHP_EOL;
}All URIs are relative to http://localhost
| Class | Method | HTTP request | Description |
|---|---|---|---|
| DefaultApi | healthCheckHealthGet | GET /health | Health Check |
| DefaultApi | rootGet | GET / | Root |
| PredictionsApi | getAllPredictionsPredictionsBeehiveBeehiveIdPost | POST /predictions/beehive/{beehive_id} | Get All Predictions |
| PredictionsApi | predictHealthPredictionsHealthPost | POST /predictions/health | Predict Health |
| PredictionsApi | predictMortalityPredictionsMortalityPost | POST /predictions/mortality | Predict Mortality |
| PredictionsApi | predictSwarmingPredictionsSwarmingPost | POST /predictions/swarming | Predict Swarming |
| TrainingApi | getBatchStatusTrainingBatchBatchIdGet | GET /training/batch/{batch_id} | Get Batch Status |
| TrainingApi | getInterventionConfigTrainingInterventionsInterventionTypeConfigGet | GET /training/interventions/{intervention_type}/config | Get Intervention Config |
| TrainingApi | getSupportedInterventionsTrainingInterventionsSupportedGet | GET /training/interventions/supported | Get Supported Interventions |
| TrainingApi | getTrainingStatusTrainingTrainingIdGet | GET /training/{training_id} | Get Training Status |
| TrainingApi | listTrainingJobsTrainingGet | GET /training | List Training Jobs |
| TrainingApi | receiveSmartTrainingBatchTrainingBatchSmartPost | POST /training/batch/smart | Receive Smart Training Batch |
| TrainingApi | startTrainingTrainingPost | POST /training | Start Training |
- AIConfig
- Alert
- BeehiveData
- BeehivePredictionInput
- BeekubePredictionOutput
- HTTPValidationError
- HealthPredictionResult
- InterventionConfig
- InterventionData
- InterventionInput
- InterventionMetadata
- ModelMetrics
- MortalityPredictionResult
- Prediction
- SupportedInterventions
- SwarmingPredictionResult
- TrainingBatch
- TrainingData
- TrainingRequest
- TrainingResult
- TrainingSample
- TrainingStatus
- ValidationError
- ValidationErrorLocInner
- VectorFeature
All endpoints do not require authorization.
To run the tests, use:
composer install
vendor/bin/phpunitThis PHP package is automatically generated by the OpenAPI Generator project:
- API version:
0.1.0- Package version:
0.0.1 - Generator version:
7.17.0
- Package version:
- Build package:
org.openapitools.codegen.languages.PhpNextgenClientCodegen