Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sencrop/sencrop-js-api-client
The Sencrop JavaScript API client
https://github.com/sencrop/sencrop-js-api-client
agriculture agtech javascript-api sencrop sencrop-api
Last synced: 17 days ago
JSON representation
The Sencrop JavaScript API client
- Host: GitHub
- URL: https://github.com/sencrop/sencrop-js-api-client
- Owner: sencrop
- License: other
- Archived: true
- Created: 2017-07-27T09:08:02.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-18T19:16:42.000Z (over 1 year ago)
- Last Synced: 2024-08-09T18:36:23.429Z (3 months ago)
- Topics: agriculture, agtech, javascript-api, sencrop, sencrop-api
- Language: JavaScript
- Homepage: https://developer.sencrop.com/tools/
- Size: 5.69 MB
- Stars: 3
- Watchers: 13
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
- -awesome-agriculture - SencropAPI-JavaScript-Client - Sencrop API Javascript client implementation. Read and manage Sencrop weather stations. (Data Standardization, Interoperability and APIs)
README
# sencrop-js-api-client
> The Sencrop JavaScript API client[//]: # (::contents:start)
The Sencrop API provides a Swagger file
as a documentation.This project aims to provide a JavaScript API
on its basis, automatically generated.# Usage
```sh
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:
```js
npm run import
npm run build
npm run compile
```[//]: # (::contents:end)
# Useful resources
- [API documentation](./API.md)
- [Architecture Notes](./ARCHITECTURE.md)
- [Changelog](./CHANGELOG.md)# License
[MIT](https://github.com/sencrop/sencrop-js-api-client/blob/master/LICENSE.md)