Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
sencrop-js-api-client
Advanced tools
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.
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,
});
});
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 to consume Sencrop data
Version: 1.0.0
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Object
Checks API's availability.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
options | Object | Options to override Axios request configuration |
Object
Get the crops
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
options | Object | Options to override Axios request configuration |
Object
Get the modules
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
options | Object | Options to override Axios request configuration |
Object
Hit the server to check the email can be used to signup.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
[parameters.authorization] | string | Authorization with Bearer mecanism, |
parameters.body | object | The email to check |
options | Object | Options to override Axios request configuration |
Object
Request a password change e-mail.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.body | object | The infos to send the mail |
options | Object | Options to override Axios request configuration |
Object
Change a user password
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.body | object | The infos to change the password |
options | Object | Options to override Axios request configuration |
Object
Log a user in
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.body | object | The infos to log in |
options | Object | Options to override Axios request configuration |
Object
Verify a user
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.body | object | Verify the user |
options | Object | Options to override Axios request configuration |
Object
Request a user token
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.partnerId | number | The partner organisation id, |
parameters.body | object | Request a user token, |
parameters.authorization | string | Authorization with Basic mecanism |
options | Object | Options to override Axios request configuration |
Object
Create a user token
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.partnerId | number | The partner organisation id, |
parameters.body | object | Create a user token, |
parameters.authorization | string | Authorization with Basic mecanism |
options | Object | Options to override Axios request configuration |
Object
Retrieves the devices a partner has access to.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.partnerId | number | The partner organisation id, |
parameters.limit | number | The number of items to retrieve, |
parameters.start | number | The index in results, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Update an partner module parameters
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.partnerId | number | The partner organisation id, |
parameters.partnerUserId | number | The partner user id, |
parameters.deviceId | number | The device id, |
parameters.moduleId | number | The module id, |
parameters.body | object | The module parameters, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Create a new user.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.body | object | The new user |
options | Object | Options to override Axios request configuration |
Object
Get a user's profile.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Update a user's profile.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.body | object | The new user, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Get a user's guests.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Create a user's guest.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
[parameters.organisationIdTarget] | number | The organisation id to add the collaborator to, |
parameters.body | object | The user's guest, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Update a user's guest.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.guestId | number | The guest id, |
parameters.body | object | The user's guest, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Delete a user's guest.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
[parameters.organisationIdTarget] | number | The organisation id to remove the collaborator to, |
parameters.guestId | number | The guest id, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Get a user's collaborators.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Create a user's collaborator.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
[parameters.organisationIdTarget] | number | The organisation id to add the collaborator to, |
parameters.body | object | The user's collaborator, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Update a user's collaborator.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.collaboratorId | string | The collaborator id, |
parameters.body | object | The user's collaborator, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Delete a user's collaborator.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
[parameters.organisationIdTarget] | number | The organisation id to remove the collaborator to, |
parameters.collaboratorId | number | The collaborator id, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Get a user's aggregations.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
[parameters.compute] | boolean | Wether the aggregations should be computed, |
[parameters.patched] | boolean | Wether you want to get only original data or eventually patched ones to avoid holes., |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Create a user's aggregation.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.body | object | The user's aggregation, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Get a single user aggregation with statistics for graphs
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.aggregationId | number | The aggregation id, |
[parameters.patched] | boolean | Wether you want to get only original data or eventually patched ones to avoid holes., |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Update a user's aggregation.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.aggregationId | number | The aggregation id, |
parameters.body | object | The user's aggregation, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Delete a user's aggregation.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.aggregationId | number | The aggregation id, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Get a user's devices groups.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Create a user's device group.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.body | object | The user's device group, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Get a user's devices group.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.deviceGroupId | number | The device group id, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Update a user's device group.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.deviceGroupId | number | The device group id, |
parameters.body | object | The user's device group, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Delete a user's device group.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.deviceGroupId | number | The device group id, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Get a user's devices.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
[parameters.date] | string | The status date, |
[parameters.measures] | array | The measures to read, |
[parameters.patched] | boolean | Wether you want to get only original data or eventually patched ones to avoid holes., |
[parameters.limit] | number | The number of items to retrieve, |
[parameters.start] | number | The index in results, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Setup a user's device.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.body | object | The user device activation couple, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Get a user's device geographic positions historic.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.deviceId | number | The device id, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Get a user's device.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.deviceId | number | The device id, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Update a user's device.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.deviceId | number | The device id, |
parameters.body | object | The user device, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Delete a user's device access.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.deviceId | number | The device id, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Get the modules a user activated on its device
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.deviceId | number | The device id, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Add a module to a user's device
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.deviceId | number | The device id, |
parameters.moduleId | number | The module id, |
parameters.body | object | The module settings, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Disable a module for a user's device
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.deviceId | number | The device id, |
parameters.moduleId | number | The module id, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Update a user's device shares.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.deviceId | number | The device id, |
parameters.sharesType | string | The shares type, |
parameters.body | array | The users concerned by the user's device share, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Get a user's device's device's statistics.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.deviceId | number | The device id, |
parameters.startDate | string | The statistics start date, |
parameters.endDate | string | The statistics end date, |
parameters.measures | array | The measures to read, |
[parameters.patched] | boolean | Wether you want to get only original data or eventually patched ones to avoid holes., |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Get a user's device's raw data.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.deviceId | number | The device id, |
parameters.beforeDate | string | The date before which the data starts being retrieved, |
parameters.size | number | The number of measures to retrieve, |
parameters.measures | array | The measures to read, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Get a user's device's hourly data.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.deviceId | number | The device id, |
parameters.beforeDate | string | The date before which the data starts being retrieved, |
parameters.days | number | The number of days to retrieve, |
parameters.measures | array | The measures to read, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Get a user's device's daily data.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.deviceId | number | The device id, |
parameters.beforeDate | string | The date before which the data starts being retrieved, |
parameters.days | number | The number of days to retrieve, |
parameters.measures | array | The measures to read, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Get a user's device's continuous device's statistics.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.deviceId | number | The device id, |
parameters.startDate | string | The statistics start date, |
parameters.endDate | string | The statistics end date, |
parameters.measures | array | The measures to read, |
[parameters.patched] | boolean | Wether you want to get only original data or eventually patched ones to avoid holes., |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Get a user's device's summary at a given date.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.deviceId | number | The device id, |
parameters.date | string | The summary date, |
parameters.measures | array | The measures to read, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Get a user's device's forecasts.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.deviceId | number | The device id, |
parameters.date | string | Date of the forecasts, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Get a user's forecasts.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.latitude | number | The latitude of the data, |
parameters.longitude | number | The longitude of the data, |
[parameters.date] | string | Date of the forecasts, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Get a user's daily data for a given geo location.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.latitude | number | The latitude of the data, |
parameters.longitude | number | The longitude of the data, |
parameters.beforeDate | string | The date before which the data starts being retrieved, |
parameters.days | number | The number of days to retrieve, |
parameters.measures | array | The measures to read, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Get a user's hourly data for a given geo location.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.latitude | number | The latitude of the data, |
parameters.longitude | number | The longitude of the data, |
parameters.beforeDate | string | The date before which the data starts being retrieved, |
parameters.days | number | The number of days to retrieve, |
parameters.measures | array | The measures to read, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Get a user's preferences.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Update a user's preferences.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.body | object | The new user preferences, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Get a organisation's operations.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.organisationId | number | The organisation id, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Create an organisation's operation.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.organisationId | number | The organisation id, |
parameters.body | object | The operation to add, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Retrieve an organisation's operation.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.organisationId | number | The organisation id, |
parameters.operationId | number | The operation id, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Update an organisation's operation.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.organisationId | number | The organisation id, |
parameters.operationId | number | The operation id, |
parameters.body | object | The operation to update, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Delete an organisation's operation.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.organisationId | number | The organisation id, |
parameters.operationId | number | The operation id, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Get a user's alerts.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Create a user's alert.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.body | object | The user's alert, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Update a user's alert.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.alertId | number | The alert id, |
parameters.body | object | The user's alert, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Delete a user's alert.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.alertId | number | The alert id, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Creates a new organisation. Highly Deprecated, will be moved soon.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.body | object | The necessary contents to create a new organisation |
options | Object | Options to override Axios request configuration |
Object
Creates a new organisation.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.userId | number | The user id, |
parameters.body | object | The necessary contents to create a new organisation, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Get the organisation.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.organisationId | number | The organisation id, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Update an organisation.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.organisationId | number | The organisation id, |
parameters.body | object | The modified organisation, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Endpoint for migration. Don't use it or use with caution !
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.organisationId | number | The organisation id, |
parameters.body | object | The necessary contents to migrate users, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Add an user to an organisation
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.organisationId | number | The organisation id, |
parameters.targetUserId | number | The user id to add, |
parameters.body | object | The type of relation, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Edit or add an user to an organisation
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.organisationId | number | The organisation id, |
parameters.targetUserId | number | The user id to add, |
parameters.body | object | The type of relation, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Delete an user from an organisation
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.organisationId | number | The organisation id, |
parameters.targetUserId | number | The user id to remove, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Create a new place for an organisation.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.organisationId | number | The organisation id, |
parameters.body | object | The necessary contents to create a new place for an organisation, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Update a place for an organisation
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.organisationId | number | The organisation id, |
parameters.placeId | number | The place id, |
parameters.body | object | The necessary contents to update a place for an organisation, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
Object
Get last measures from devices in a given area.
Kind: inner method of API
Returns: Object
- The HTTP response
Param | Type | Description |
---|---|---|
parameters | Object | The parameters to provide (destructured) |
parameters.latitudeTopLeft | number | The latitude (top left corner) of the data, |
parameters.longitudeTopLeft | number | The longitude (top left corner) of the data, |
parameters.latitudeBottomRight | number | The latitude (bottom right corner) of the data, |
parameters.longitudeBottomRight | number | The longitude (bottom right corner) of the data, |
parameters.authorization | string | Authorization with Bearer mecanism, |
[parameters.accessToken] | string | Access token in the query string |
options | Object | Options to override Axios request configuration |
FAQs
The Sencrop JavaScript API client
The npm package sencrop-js-api-client receives a total of 4 weekly downloads. As such, sencrop-js-api-client popularity was classified as not popular.
We found that sencrop-js-api-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.