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.
New JavaScript library for Aaro REST API, supports CommonJS (CJS).
Requests are made with Axios library with support to promises.
npm install --save aaro
Generate API credentials (Bearer Token) following this instructions https://aaro-api.netlify.app/#authentication/ .
Check out the Aaro API endpoints and data that can be manipulated in https://aaro-api.netlify.app/.
const Aaro = require('./index');
const aaro = new Aaro({
baseUrl: 'https://erp.aaro.com.tr',
accessToken: 'OMBwgauc1HwRBxBA...',
});
Option | Type | Required | Description |
---|---|---|---|
baseUrl | String | yes | Your Erp URL, example: https://erp.aaro.com.tr |
accessToken | String | yes | Your bearer token |
encoding | String | no | Encoding, default is 'utf-8' |
timeout | Integer | no | Define the request timeout |
axiosConfig | Object | no | Define the custom Axios config, also override this library options |
.get(endpoint)
.get(endpoint, params)
Params | Type | Description |
---|---|---|
endpoint | String | Aaro API endpoint, example: Stok or Stok/StokMiktarListe |
params | Object | Query strings params, example: { sayfa: 2, SayfaSatirSayisi:100 } |
.post(endpoint, data)
.post(endpoint, data, params)
Params | Type | Description |
---|---|---|
endpoint | String | Aaro API endpoint, example: Stok or Depo |
data | Object | JS object to be converted into JSON and sent in the request |
params | Object | Query strings params |
.put(endpoint, data)
.put(endpoint, data, params)
Params | Type | Description |
---|---|---|
endpoint | String | Aaro API endpoint, example: StokVergi |
data | Object | JS object to be converted into JSON and sent in the request |
params | Object | Query strings params |
.delete(endpoint)
.delete(endpoint, params)
Params | Type | Description |
---|---|---|
endpoint | String | Aaro API endpoint, example: Stok or Depo |
data | Object | JS object to be converted into JSON and sent in the request |
const Aaro = require('./index');
const aaro = new Aaro({
baseUrl: 'https://erp2.aaro.com.tr',
accessToken: 'OMBwgauc1HwRBx********',
});
aaro.get('Stok', {
Sayfa: 1,
SayfaSatirSayisi: 10,
StokID: '1567,1562,8591,1531,7879,7875,6382,6384,6383,7879,6385',
}).then((response) => console.log(response.data.Model));
FAQs
Aaro api client
The npm package aaro receives a total of 0 weekly downloads. As such, aaro popularity was classified as not popular.
We found that aaro demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.