# netsuite-oauth-sha256

> created get, post and put request with sha256 signature method

Latest version **1.1.3** (published 2022-05-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install netsuite-oauth-sha256
pnpm add netsuite-oauth-sha256
yarn add netsuite-oauth-sha256
bun add netsuite-oauth-sha256
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2022-05-03 |
| First published | 2022-05-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | dima-duka |
| Maintainers | dima-duka |
| Keywords | sha256, oauth, netsuite, restlet |

## Links

- npm: https://www.npmjs.com/package/netsuite-oauth-sha256
- Repository: https://github.com/DukaDima/netsuite-oauth-sha256
- Homepage: https://github.com/DukaDima/netsuite-oauth-sha256#readme
- Issues: https://github.com/DukaDima/netsuite-oauth-sha256/issues
- npm.io page: https://npm.io/package/netsuite-oauth-sha256

## Dependencies (3)

- [crypto](https://npm.io/package/crypto.md) ^1.0.1
- [request](https://npm.io/package/request.md) ^2.88.2
- [oauth-1.0a](https://npm.io/package/oauth-1.0a.md) ^2.2.6

## Alternatives

- [@clerk/clerk-expo](https://npm.io/package/@clerk/clerk-expo.md) — 133.6K weekly downloads
- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads

## Recent versions

- 1.1.3 (latest) — 2022-05-03
- 1.1.2 — 2022-05-03
- 1.1.1 — 2022-05-03
- 1.1.0 — 2022-05-03
- 1.0.1 — 2022-05-03
- 1.0.0 — 2022-05-03

## README

# netsuite-oauth-sha256

This auxiliary module abstracts the authentication mechanism used by NetSuite Restlets.

## Example of GET request
``` javascript
const NetSuiteOauth = require('netsuite-oauth-sha256');
 
const url = 'your-restlet-url';
const method = 'GET';
const consumerKey = 'your-consumer-key';
const consumerSecret = 'your-consumer-secret';
const tokenId = 'token-id';
const tokenSecret = 'token-secret';
const account = 'account Id';
 
const oauth = new NetSuiteOauth(url, method, consumerKey, consumerSecret, tokenId, tokenSecret, account);
 
oauth.get().then(response => console.log(response));
```

## Example of POST request

```javascript
const NetSuiteOauth = require('netsuite-oauth-sha256');
 
const url = 'your-restlet-url';
const method = 'POST';
const consumerKey = 'your-consumer-key';
const consumerSecret = 'your-consumer-secret';
const tokenId = 'token-id';
const tokenSecret = 'token-secret';
const account = 'account Id';
 
const oauth = new NetSuiteOauth(url, method, consumerKey, consumerSecret, tokenId, tokenSecret, account);
const data = {key: 'value'};
 
oauth.post(data).then(response => console.log(response));
```

---
_Source: https://npm.io/package/netsuite-oauth-sha256 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
