s0ph1e / node-unisender Goto Github PK
View Code? Open in Web Editor NEW:email: UniSender API for nodejs
Home Page: https://www.npmjs.com/package/unisender
:email: UniSender API for nodejs
Home Page: https://www.npmjs.com/package/unisender
Due to unisender switched to https protocol, could You, please, change URL in default config. Or add the default url to an options, when calling new Unisender.
Thanks!
var Promise = require('bluebird');
var request = Promise.promisify(require('request'));
var _ = require('lodash');
function makeRequest (url, body) {
var options = {
method: 'post',
url: url,
form: body
};
return request(options).then(function (response) {
var res = JSON.parse(response.body);
return res.result ? Promise.resolve(res) : Promise.reject(res); **// Could u please add some logics here to throw an error, in case of error in request. Because now sometimes happens situation like (Promise.reject(undefined)) - and no error handler provided**
});
}
module.exports = makeRequest;
3.5.3
to 3.5.4
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
bluebird is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
The new version differs by 6 commits.
e0222e3
Release v3.5.4
4b9fa33
missing --expose-gc
flag (#1586)
63b15da
docs: improve and compare Promise.each and Promise.mapSeries (#1565)
9dcefe2
.md syntax fix for coming-from-other-languages.md (#1584)
b97c0d2
added proper version check supporting VSCode (#1576)
499cf8e
Update jsdelivr url in docs (#1571)
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
ΠΠ΄Π΅?
Hi.
Can you help me sendEmail with attachments?
I need example with send email where attachments are pdf file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.