Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sencrop-js-api-client

Package Overview
Dependencies
Maintainers
2
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sencrop-js-api-client

The Sencrop JavaScript API client

  • 1.10.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-20%
Maintainers
2
Weekly downloads
 
Created
Source

sencrop-js-api-client

The Sencrop JavaScript API client

The Sencrop API provides a Swagger file as a documentation.

This project aims to provide a JavaScript API on its basis, automatically generated.

Usage

import API from 'sencrop-js-api-client';

API.getUserDeviceStatistics({
  authorization: 'Bearer yolo-token',
  startDate: '2014-07-01T00:00:00.000Z',
  endDate: '2017-07-21T00:00:00.000Z',
}, {
  // Here goes any Axios request configuration override
  // See: https://github.com/mzabriskie/axios#request-config
  timeout: 40000,
})
.then(response => {
  console.log({
    response,
  });
});

Development

To rebuild the API, erase the swagger file with a newer one and build the SDK again:

npm run import -- ../infrastructure-sencrop/src/swagger.api.json
npm run build
npm run compile

API

API

API to consume Sencrop data

Version: 1.0.0

API~getPing(parameters, options) ⇒ Object

Checks API's availability.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
optionsObjectOptions to override Axios request configuration

API~getCrops(parameters, options) ⇒ Object

Get the crops

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
optionsObjectOptions to override Axios request configuration

API~getModules(parameters, options) ⇒ Object

Get the modules

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
optionsObjectOptions to override Axios request configuration

API~postSignupCheck(parameters, options) ⇒ Object

Hit the server to check the email can be used to signup.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
[parameters.authorization]stringAuthorization with Bearer mecanism,
parameters.bodyobjectThe email to check
optionsObjectOptions to override Axios request configuration

API~postLostPassword(parameters, options) ⇒ Object

Request a password change e-mail.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.bodyobjectThe infos to send the mail
optionsObjectOptions to override Axios request configuration

API~putPassword(parameters, options) ⇒ Object

Change a user password

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.bodyobjectThe infos to change the password
optionsObjectOptions to override Axios request configuration

API~postLogin(parameters, options) ⇒ Object

Log a user in

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.bodyobjectThe infos to log in
optionsObjectOptions to override Axios request configuration

API~postVerify(parameters, options) ⇒ Object

Verify a user

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.bodyobjectVerify the user
optionsObjectOptions to override Axios request configuration

API~postPartnerTokenRequest(parameters, options) ⇒ Object

Request a user token

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.partnerIdnumberThe partner organisation id,
parameters.bodyobjectRequest a user token,
parameters.authorizationstringAuthorization with Basic mecanism
optionsObjectOptions to override Axios request configuration

API~postPartnerToken(parameters, options) ⇒ Object

Create a user token

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.partnerIdnumberThe partner organisation id,
parameters.bodyobjectCreate a user token,
parameters.authorizationstringAuthorization with Basic mecanism
optionsObjectOptions to override Axios request configuration

API~getPartnerDevices(parameters, options) ⇒ Object

Retrieves the devices a partner has access to.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.partnerIdnumberThe partner organisation id,
parameters.limitnumberThe number of items to retrieve,
parameters.startnumberThe index in results,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~putPartnerModuleParameters(parameters, options) ⇒ Object

Update an partner module parameters

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.partnerIdnumberThe partner organisation id,
parameters.partnerUserIdnumberThe partner user id,
parameters.deviceIdnumberThe device id,
parameters.moduleIdnumberThe module id,
parameters.bodyobjectThe module parameters,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~postUser(parameters, options) ⇒ Object

Create a new user.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.bodyobjectThe new user
optionsObjectOptions to override Axios request configuration

API~getUser(parameters, options) ⇒ Object

Get a user's profile.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~putUser(parameters, options) ⇒ Object

Update a user's profile.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.bodyobjectThe new user,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~getUserGuests(parameters, options) ⇒ Object

Get a user's guests.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~postUserGuest(parameters, options) ⇒ Object

Create a user's guest.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
[parameters.organisationIdTarget]numberThe organisation id to add the collaborator to,
parameters.bodyobjectThe user's guest,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~putUserGuest(parameters, options) ⇒ Object

Update a user's guest.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.guestIdnumberThe guest id,
parameters.bodyobjectThe user's guest,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~deleteUserGuest(parameters, options) ⇒ Object

Delete a user's guest.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
[parameters.organisationIdTarget]numberThe organisation id to remove the collaborator to,
parameters.guestIdnumberThe guest id,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~getUserCollaborators(parameters, options) ⇒ Object

Get a user's collaborators.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~postUserCollaborator(parameters, options) ⇒ Object

Create a user's collaborator.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
[parameters.organisationIdTarget]numberThe organisation id to add the collaborator to,
parameters.bodyobjectThe user's collaborator,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~putUserCollaborator(parameters, options) ⇒ Object

Update a user's collaborator.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.collaboratorIdstringThe collaborator id,
parameters.bodyobjectThe user's collaborator,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~deleteUserCollaborator(parameters, options) ⇒ Object

Delete a user's collaborator.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
[parameters.organisationIdTarget]numberThe organisation id to remove the collaborator to,
parameters.collaboratorIdnumberThe collaborator id,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~getUserAggregations(parameters, options) ⇒ Object

Get a user's aggregations.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
[parameters.compute]booleanWether the aggregations should be computed,
[parameters.patched]booleanWether you want to get only original data or eventually patched ones to avoid holes.,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~postUserAggregation(parameters, options) ⇒ Object

Create a user's aggregation.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.bodyobjectThe user's aggregation,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~getUserAggregation(parameters, options) ⇒ Object

Get a single user aggregation with statistics for graphs

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.aggregationIdnumberThe aggregation id,
[parameters.patched]booleanWether you want to get only original data or eventually patched ones to avoid holes.,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~putUserAggregation(parameters, options) ⇒ Object

Update a user's aggregation.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.aggregationIdnumberThe aggregation id,
parameters.bodyobjectThe user's aggregation,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~deleteUserAggregation(parameters, options) ⇒ Object

Delete a user's aggregation.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.aggregationIdnumberThe aggregation id,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~getUserDeviceGroups(parameters, options) ⇒ Object

Get a user's devices groups.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~postUserDeviceGroup(parameters, options) ⇒ Object

Create a user's device group.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.bodyobjectThe user's device group,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~getUserDeviceGroup(parameters, options) ⇒ Object

Get a user's devices group.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.deviceGroupIdnumberThe device group id,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~putUserDeviceGroup(parameters, options) ⇒ Object

Update a user's device group.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.deviceGroupIdnumberThe device group id,
parameters.bodyobjectThe user's device group,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~deleteUserDeviceGroup(parameters, options) ⇒ Object

Delete a user's device group.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.deviceGroupIdnumberThe device group id,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~getUserDevices(parameters, options) ⇒ Object

Get a user's devices.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
[parameters.date]stringThe status date,
[parameters.measures]arrayThe measures to read,
[parameters.patched]booleanWether you want to get only original data or eventually patched ones to avoid holes.,
[parameters.limit]numberThe number of items to retrieve,
[parameters.start]numberThe index in results,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~postUserDevice(parameters, options) ⇒ Object

Setup a user's device.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.bodyobjectThe user device activation couple,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~getUserDevicePositions(parameters, options) ⇒ Object

Get a user's device geographic positions historic.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.deviceIdnumberThe device id,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~getUserDevice(parameters, options) ⇒ Object

Get a user's device.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.deviceIdnumberThe device id,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~putUserDevice(parameters, options) ⇒ Object

Update a user's device.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.deviceIdnumberThe device id,
parameters.bodyobjectThe user device,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~deleteUserDevice(parameters, options) ⇒ Object

Delete a user's device access.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.deviceIdnumberThe device id,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~getUserDeviceModules(parameters, options) ⇒ Object

Get the modules a user activated on its device

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.deviceIdnumberThe device id,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~putUserDeviceModule(parameters, options) ⇒ Object

Add a module to a user's device

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.deviceIdnumberThe device id,
parameters.moduleIdnumberThe module id,
parameters.bodyobjectThe module settings,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~deleteUserDeviceModule(parameters, options) ⇒ Object

Disable a module for a user's device

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.deviceIdnumberThe device id,
parameters.moduleIdnumberThe module id,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~putUserDeviceShares(parameters, options) ⇒ Object

Update a user's device shares.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.deviceIdnumberThe device id,
parameters.sharesTypestringThe shares type,
parameters.bodyarrayThe users concerned by the user's device share,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~getUserDeviceStatistics(parameters, options) ⇒ Object

Get a user's device's device's statistics.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.deviceIdnumberThe device id,
parameters.startDatestringThe statistics start date,
parameters.endDatestringThe statistics end date,
parameters.measuresarrayThe measures to read,
[parameters.patched]booleanWether you want to get only original data or eventually patched ones to avoid holes.,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~getUserDeviceRawData(parameters, options) ⇒ Object

Get a user's device's raw data.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.deviceIdnumberThe device id,
parameters.beforeDatestringThe date before which the data starts being retrieved,
parameters.sizenumberThe number of measures to retrieve,
parameters.measuresarrayThe measures to read,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~getUserDeviceHourlyData(parameters, options) ⇒ Object

Get a user's device's hourly data.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.deviceIdnumberThe device id,
parameters.beforeDatestringThe date before which the data starts being retrieved,
parameters.daysnumberThe number of days to retrieve,
parameters.measuresarrayThe measures to read,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~getUserDeviceDailyData(parameters, options) ⇒ Object

Get a user's device's daily data.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.deviceIdnumberThe device id,
parameters.beforeDatestringThe date before which the data starts being retrieved,
parameters.daysnumberThe number of days to retrieve,
parameters.measuresarrayThe measures to read,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~getUserDeviceContinuousStatistics(parameters, options) ⇒ Object

Get a user's device's continuous device's statistics.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.deviceIdnumberThe device id,
parameters.startDatestringThe statistics start date,
parameters.endDatestringThe statistics end date,
parameters.measuresarrayThe measures to read,
[parameters.patched]booleanWether you want to get only original data or eventually patched ones to avoid holes.,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~getUserDeviceSummary(parameters, options) ⇒ Object

Get a user's device's summary at a given date.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.deviceIdnumberThe device id,
parameters.datestringThe summary date,
parameters.measuresarrayThe measures to read,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~getUserDeviceForecasts(parameters, options) ⇒ Object

Get a user's device's forecasts.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.deviceIdnumberThe device id,
parameters.datestringDate of the forecasts,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~getUserForecasts(parameters, options) ⇒ Object

Get a user's forecasts.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.latitudenumberThe latitude of the data,
parameters.longitudenumberThe longitude of the data,
[parameters.date]stringDate of the forecasts,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~getUserDailyData(parameters, options) ⇒ Object

Get a user's daily data for a given geo location.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.latitudenumberThe latitude of the data,
parameters.longitudenumberThe longitude of the data,
parameters.beforeDatestringThe date before which the data starts being retrieved,
parameters.daysnumberThe number of days to retrieve,
parameters.measuresarrayThe measures to read,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~getUserHourlyData(parameters, options) ⇒ Object

Get a user's hourly data for a given geo location.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.latitudenumberThe latitude of the data,
parameters.longitudenumberThe longitude of the data,
parameters.beforeDatestringThe date before which the data starts being retrieved,
parameters.daysnumberThe number of days to retrieve,
parameters.measuresarrayThe measures to read,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~getUserPreferences(parameters, options) ⇒ Object

Get a user's preferences.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~putUserPreferences(parameters, options) ⇒ Object

Update a user's preferences.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.bodyobjectThe new user preferences,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~getOrganisationOperations(parameters, options) ⇒ Object

Get a organisation's operations.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.organisationIdnumberThe organisation id,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~postOrganisationOperation(parameters, options) ⇒ Object

Create an organisation's operation.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.organisationIdnumberThe organisation id,
parameters.bodyobjectThe operation to add,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~getOrganisationOperation(parameters, options) ⇒ Object

Retrieve an organisation's operation.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.organisationIdnumberThe organisation id,
parameters.operationIdnumberThe operation id,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~putOrganisationOperation(parameters, options) ⇒ Object

Update an organisation's operation.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.organisationIdnumberThe organisation id,
parameters.operationIdnumberThe operation id,
parameters.bodyobjectThe operation to update,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~deleteOrganisationOperation(parameters, options) ⇒ Object

Delete an organisation's operation.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.organisationIdnumberThe organisation id,
parameters.operationIdnumberThe operation id,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~getUserAlerts(parameters, options) ⇒ Object

Get a user's alerts.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~postUserAlert(parameters, options) ⇒ Object

Create a user's alert.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.bodyobjectThe user's alert,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~putUserAlert(parameters, options) ⇒ Object

Update a user's alert.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.alertIdnumberThe alert id,
parameters.bodyobjectThe user's alert,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~deleteUserAlert(parameters, options) ⇒ Object

Delete a user's alert.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.alertIdnumberThe alert id,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~postOrganisationDeprecated(parameters, options) ⇒ Object

Creates a new organisation. Highly Deprecated, will be moved soon.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.bodyobjectThe necessary contents to create a new organisation
optionsObjectOptions to override Axios request configuration

API~postOrganisation(parameters, options) ⇒ Object

Creates a new organisation.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.userIdnumberThe user id,
parameters.bodyobjectThe necessary contents to create a new organisation,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~getOrganisation(parameters, options) ⇒ Object

Get the organisation.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.organisationIdnumberThe organisation id,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~putOrganisation(parameters, options) ⇒ Object

Update an organisation.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.organisationIdnumberThe organisation id,
parameters.bodyobjectThe modified organisation,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~postOrganisationMembersMigration(parameters, options) ⇒ Object

Endpoint for migration. Don't use it or use with caution !

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.organisationIdnumberThe organisation id,
parameters.bodyobjectThe necessary contents to migrate users,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~postOrganisationUser(parameters, options) ⇒ Object

Add an user to an organisation

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.organisationIdnumberThe organisation id,
parameters.targetUserIdnumberThe user id to add,
parameters.bodyobjectThe type of relation,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~putOrganisationUser(parameters, options) ⇒ Object

Edit or add an user to an organisation

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.organisationIdnumberThe organisation id,
parameters.targetUserIdnumberThe user id to add,
parameters.bodyobjectThe type of relation,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~deleteOrganisationUser(parameters, options) ⇒ Object

Delete an user from an organisation

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.organisationIdnumberThe organisation id,
parameters.targetUserIdnumberThe user id to remove,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~postOrganisationPlace(parameters, options) ⇒ Object

Create a new place for an organisation.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.organisationIdnumberThe organisation id,
parameters.bodyobjectThe necessary contents to create a new place for an organisation,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~putOrganisationPlace(parameters, options) ⇒ Object

Update a place for an organisation

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.organisationIdnumberThe organisation id,
parameters.placeIdnumberThe place id,
parameters.bodyobjectThe necessary contents to update a place for an organisation,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

API~getWeatherLive(parameters, options) ⇒ Object

Get last measures from devices in a given area.

Kind: inner method of API
Returns: Object - The HTTP response

ParamTypeDescription
parametersObjectThe parameters to provide (destructured)
parameters.latitudeTopLeftnumberThe latitude (top left corner) of the data,
parameters.longitudeTopLeftnumberThe longitude (top left corner) of the data,
parameters.latitudeBottomRightnumberThe latitude (bottom right corner) of the data,
parameters.longitudeBottomRightnumberThe longitude (bottom right corner) of the data,
parameters.authorizationstringAuthorization with Bearer mecanism,
[parameters.accessToken]stringAccess token in the query string
optionsObjectOptions to override Axios request configuration

License

MIT

Keywords

FAQs

Package last updated on 12 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc