Gathering detailed insights and metrics for @cantremember/sendgrid-rest
Gathering detailed insights and metrics for @cantremember/sendgrid-rest
Gathering detailed insights and metrics for @cantremember/sendgrid-rest
Gathering detailed insights and metrics for @cantremember/sendgrid-rest
This repo is no longer maintained. Please use https://github.com/sendgrid/sendgrid-nodejs/tree/HEAD/packages/client instead
npm install @cantremember/sendgrid-rest
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (99.19%)
Makefile (0.7%)
Dockerfile (0.11%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
19 Stars
149 Commits
54 Forks
118 Watchers
2 Branches
461 Contributors
Updated on Dec 19, 2023
Latest Version
2.2.3-alpha
Package Id
@cantremember/sendgrid-rest@2.2.3-alpha
Size
9.85 kB
NPM Version
3.10.3
Node Version
6.5.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
6
Quickly and easily access any RESTful or RESTful-like API.
If you are looking for the SendGrid API client library, please see this repo.
All updates to this library is documented in our CHANGELOG.
1npm install sendgrid-rest
GET /your/api/{param}/call
1var Client = require('sendgrid-rest').Client 2var client = new Client() 3var request = client.emptyRequest() 4var param = 'myparam' 5request.host = 'api.example.com' 6request.method = 'GET' 7request.path = '/your/api/' + param + '/call' 8client.API(request, function (response) { 9 console.log(response.statusCode) 10 console.log(response.body) 11 console.log(response.headers) 12})
POST /your/api/{param}/call
with headers, query parameters and a request body.
1var Client = require('sendgrid-rest').Client 2var client = new Client() 3var request = client.emptyRequest() 4request.host = 'api.example.com' 5request.headers['Authorization'] = 'Bearer XXXXXX' 6request.queryParams['limit'] = 100 7request.queryParams['offset'] = 0 8request.method = 'POST' 9var param = 'myparam' 10request.path = '/your/api/' + param + '/call' 11requestBody = { 12 'some': 0, 13 'awesome': 1, 14 'data': 3 15} 16request.body = requestBody 17client.API(request, function (response) { 18 console.log(response.statusCode) 19 console.log(response.body) 20 console.log(response.headers) 21})
Following is an example using SendGrid. You can get your free account here.
First, update your environment with your SENDGRID_API_KEY.
1echo "export SENDGRID_API_KEY='YOUR_API_KEY'" > sendgrid.env 2echo "sendgrid.env" >> .gitignore 3source ./sendgrid.env
Here is the full working code.
To run the example:
1node examples/example
If you are interested in the future direction of this project, please take a look at our milestones. We would love to hear your feedback.
We encourage contribution to our libraries, please see our CONTRIBUTING guide for details.
nodejs-http-client is guided and supported by the SendGrid Developer Experience Team.
nodejs-http-client is maintained and funded by SendGrid, Inc. The names and logos for nodejs-http-client are trademarks of SendGrid, Inc.
![SendGrid Logo] (https://uiux.s3.amazonaws.com/2016-logos/email-logo%402x.png)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 5/27 approved changesets -- score normalized to 1
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
13 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More