sendgrid / sendgrid-parse-api-example Goto Github PK
View Code? Open in Web Editor NEWExample application using the SendGrid Parse API.
Example application using the SendGrid Parse API.
I'm trying to implement parse webhook and receive with php. What format is the response from the webhook? I tried to work as json, but it seems it is not.
Can you add code to use bearer / Token instead of basic authentication?
Sorry if this isn't the best forum, but I'm not sure how else to reach sendgrid developers.
The issue is I'm the same email multiple times. I built a simply example, end-to-end of receiving inbound email via sendgrid's parse, calling my webhook, which then stores the payload into an air table. You can see the results here:
On the sender's end, I receive no bounce messages. Not sure if there's anything I can do on my end to fix this but any suggestions would be appreciated!
Hi, i have an isuue with GF parsing attachment emails, i am not able even check if attachments was arrived, here is my nodejs function
app.post('', async function(req, res) {
try {
if (req.method === 'POST') {
const busboy = new Busboy({ headers: req.headers, limits: 50000000 });
const uploads = {};
const body = {};
busboy.on('field', (fieldname, val) => {
body[fieldname] = val;
});
const tmpdir = os.tmpdir();
const fileWrites = [];
busboy.on('file', (fieldname, file, filename) => {
const filepath = path.join(tmpdir, filename);
uploads[fieldname] = {
filename: filename || file.name || 'temp.temp',
filepath,
file,
};
const writeStream = fs.createWriteStream(filepath);
file.pipe(writeStream);
const promise = new Promise((resolve, reject) => {
file.on('end', () => {
writeStream.end();
});
writeStream.on('finish', resolve);
writeStream.on('error', reject);
});
fileWrites.push(promise);
});
busboy.on('finish', () => {
Promise.all(fileWrites).then(async () => {
try {
//uploads always are empty
} catch (e) {
console.log(e);
}
});
});
busboy.end(req.rawBody || req.body);
} else {
res.status(405).send({ error: 'ONLY POST' });
}
console.log('Start logging--', req.body);
} catch (e) {
console.log(e);
res.status(400).send(e.message || e);
}
});
Can you help to find out the issue?
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.