Skip to content

beekube-app/intelligence-sdk

Repository files navigation

SDK PHP pour l'API BLUP de Beekube - Calcul génétique des abeilles mellifères

API for apicultural predictions and recommendations

For more information, please visit https://www.beekube.com.

Installation & Usage

Requirements

PHP 8.1 and later.

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "require": {
    "beekube-app/intelligence-sdk": "*"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

<?php
require_once('/path/to/intelligence-sdk/vendor/autoload.php');

Getting Started

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;
}

API Endpoints

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

Models

Authorization

All endpoints do not require authorization.

Tests

To run the tests, use:

composer install
vendor/bin/phpunit

Author

contact@beekube.com

About this package

This 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
  • Build package: org.openapitools.codegen.languages.PhpNextgenClientCodegen

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors