Download the PHP package timelight-ai/php-api-client without Composer

On this page you can find all versions of the php package timelight-ai/php-api-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-api-client

Timelight API Client

A PHP library for easy use of the Timelight AI API.

This PHP package is automatically generated by the Swagger Codegen project:

Documentation

Generic documentation and tutorials of the API can be found at api.timelight.tech.

Full client reference can be found in the docs folder

Requirements

PHP 5.5 and later

Installation & Usage

Composer

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

Run composer require timelight-ai/php-api-client

Manual Installation

Download the files and include autoload.php:

Tests

To run the unit tests:

Getting Started

Please follow the installation procedure and then run the following:

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
AIApi v1AiAnomaliesSourceIdGet GET /v1/ai/anomalies/{sourceId} Auto detect-anomalies
AIApi v1AiRecomputeDayModelsSourceIdYearPost POST /v1/ai/recompute-day-models/{sourceId}/{year} Recomputes all day modesl
AIApi v1AiRecomputeDaysProjectionSourceIdYearPost POST /v1/ai/recompute-days-projection/{sourceId}/{year} Computes all days projection for a source and save them
AIApi v1AiRecomputeModelsSourceIdYearPost POST /v1/ai/recompute-models/{sourceId}/{year} Triggers a model recompute
AIApi v1AiRecomputeSourceModelsModelCountPost POST /v1/ai/recompute-source-models/{modelCount} Triggers a model recompute for source groups
AlertApi v1AlertAlertIdCommentPatch PATCH /v1/alert/{alertId}/comment Add a comment to an alert
AlertApi v1AlertAlertIdFavoritePatch PATCH /v1/alert/{alertId}/favorite Set alert favorite for the current user
AlertApi v1AlertListGet GET /v1/alert/list List alerts data of the selected year, all alerts if no year is provided
AlertApi v1AlertRefListGet GET /v1/alert/ref/list List alerts data of the selected year, all alerts if no year is provided
DayApi v1DayBulkPatch PATCH /v1/day/bulk Update day entities
DayApi v1DayListSourceIdYearGet GET /v1/day/list/{sourceId}/{year} List day data of the reference year
DayContextApi v1DayContextBulkPost POST /v1/day-context/bulk Create many DayContext
DayContextApi v1DayContextGet GET /v1/day-context Retrieve many DayContext
DayContextApi v1DayContextIdDelete DELETE /v1/day-context/{id} Delete one DayContext
DayContextApi v1DayContextIdGet GET /v1/day-context/{id} Retrieve one DayContext
DayContextApi v1DayContextIdPatch PATCH /v1/day-context/{id} Update one DayContext
DayContextApi v1DayContextIdPut PUT /v1/day-context/{id} Replace one DayContext
DayContextApi v1DayContextImportMeteoCsvSourceIdPost POST /v1/day-context/import-meteo-csv/{sourceId} Imports a meteo csv file for the source id
DayContextApi v1DayContextPost POST /v1/day-context Create one DayContext
DayTrendApi v1DayTrendBulkPost POST /v1/day-trend/bulk Create many DayTrend
DayTrendApi v1DayTrendGet GET /v1/day-trend Retrieve many DayTrend
DayTrendApi v1DayTrendIdDelete DELETE /v1/day-trend/{id} Delete one DayTrend
DayTrendApi v1DayTrendIdGet GET /v1/day-trend/{id} Retrieve one DayTrend
DayTrendApi v1DayTrendIdPatch PATCH /v1/day-trend/{id} Update one DayTrend
DayTrendApi v1DayTrendIdPut PUT /v1/day-trend/{id} Replace one DayTrend
DayTrendApi v1DayTrendPost POST /v1/day-trend Create one DayTrend
DayTrendApi v1DayTrendReplaceAllInSourceSourceIdPost POST /v1/day-trend/replace-all-in-source/{sourceId} Imports many trends and replace existing. Recomputes alerts
ImportApi v1ImportCreateSourcePost POST /v1/import/create-source First source creation
ImportApi v1ImportDaysPost POST /v1/import/days Add new data to a source
ImportApi v1ImportReprocessDaysSourceIdYearPost POST /v1/import/reprocess-days/{sourceId}/{year} Reprocess days from database
ImportApi v1ImportSourceIdDaysPost POST /v1/import/{sourceId}/days Add new data to a source
ModelApi v1ModelBulkPatch PATCH /v1/model/bulk Model bulk update
ModelApi v1ModelListSourceIdGet GET /v1/model/list/{sourceId} List models data of this source
PrevisionApi v1PrevisionGroupApplyPrevisionPost POST /v1/prevision/group-apply-prevision Apply a source prevision to the whole group
PrevisionApi v1PrevisionListSourceIdYearGet GET /v1/prevision/list/{sourceId}/{year} Fetch data previsions for a given year
PrevisionApi v1PrevisionSaveDefaultPrevisionsSourceIdYearPost POST /v1/prevision/save-default-previsions/{sourceId}/{year} Generate default previsions for the source and save them
PrevisionApi v1PrevisionSavePost POST /v1/prevision/save Save many previsions at once
PrevisionApi v1PrevisionUpdatePatch PATCH /v1/prevision/update Update a specific prevision
SourceApi v1SourceListGet GET /v1/source/list All user sources
SourceApi v1SourceSourceIdDelete DELETE /v1/source/{sourceId} Delete a source and all linked data
SourceApi v1SourceSourceIdGroupPatch PATCH /v1/source/{sourceId}/group Update a source group
SourceApi v1SourceSourceIdPatch PATCH /v1/source/{sourceId} Update a source
SourceGroupApi v1SourceGroupCreatePost POST /v1/source-group/create Create a new source groups
SourceGroupApi v1SourceGroupGroupIdPatch PATCH /v1/source-group/{groupId} Updates a group configuration
SourceGroupApi v1SourceGroupListGet GET /v1/source-group/list All source groups
UserApi v1UserLoginPost POST /v1/user/login Log the user in
UserApi v1UserMeGet GET /v1/user/me Retrieve current user information
UserApi v1UserRegisterDemoPost POST /v1/user/register-demo
ViewHelperApi v1ViewHelperAlertsGet GET /v1/view-helper/alerts Get the alert view data
ViewHelperApi v1ViewHelperAlertsRefGet GET /v1/view-helper/alerts-ref Get the alert referential view data
ViewHelperApi v1ViewHelperDaysNearDateSourceIdDayDateGet GET /v1/view-helper/days-near-date/{sourceId}/{dayDate} Get the alert modal view data

Documentation For Models

Documentation For Authorization

bearer

Author


All versions of php-api-client with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
ext-curl Version *
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^6.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package timelight-ai/php-api-client contains the following files

Loading the files please wait ....