Socket
Socket
Sign inDemoInstall

apigratis-sdk-nodejs

Package Overview
Dependencies
2
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.2 to 0.0.3

test-directory/node_modules/.package-lock.json

14

package.json
{
"name": "apigratis-sdk-nodejs",
"version": "0.0.2",
"version": "0.0.3",
"description": "A ideia desse SDK é otimizar o tempo de código dos usuários auxiliando na integração com a plataforma",
"homepage": "https://apigratis.com.br",
"author": {
"name": "APIGratis",
"email": "contato@apigratis.com.br",
"url": "https://apigratis.com.br"
},
"author": "APIGratis <contato@apigratis.com.br> (https://apigratis.com.br)",
"main": "src/APIGratis.js",

@@ -24,3 +20,3 @@ "strict": true,

"cnpj",
"correios"
"correios"
],

@@ -42,3 +38,3 @@ "scripts": {

"type": "git",
"url": "https://github.com/APIBrasil/apigratis-sdk-node.git"
"url": "git+https://github.com/APIBrasil/apigratis-sdk-node.git"
},

@@ -56,2 +52,2 @@ "dependencies": {

"devDependencies": {}
}
}

@@ -24,3 +24,3 @@ # SDK JavaScript - APIGratis by API BRASIL 🚀

## Instalando pacote com o composer
```npm install apigratis```
```npm i apigratis-sdk-nodejs --save```

@@ -27,0 +27,0 @@ ## Mais informações

@@ -1,2 +0,2 @@

const WhatsApp = require('apigratis');
const APIGratis = require('apigratis-sdk-nodejs');

@@ -7,3 +7,5 @@ async function teste() {

const response = await WhatsApp.request({
let apigratis = new APIGratis();
const response = await apigratis.WhatsApp({
action: "sendText",

@@ -23,19 +25,9 @@ credentials: {

return response;
console.log(response);
} catch (error) {
return {
status: "error",
message: error.message
};
console.log(response);
}
}
teste().then(result => {
console.log(result);
}).catch(error => {
console.error(error);
});
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc