HTTP / Webhook

Get a unique URL where you can send HTTP or webhook requests

Go to site

Integrate the HTTP / Webhook API with the MongoDB API

Setup the HTTP / Webhook API trigger to run a workflow which integrates with the MongoDB API. Pipedream's integration platform allows you to integrate HTTP / Webhook and MongoDB remarkably fast. Free for developers.

HTTP / Webhook Request

Make an HTTP or webhook request and return the response as a step export.

 
Try it
Insert a document into a collection
 
Try it

Connect HTTP / Webhook

return await require("@pipedreamhq/platform").axios(this, {
  url: "http://api.open-notify.org/iss-now.json"
})

Connect MongoDB

const MongoClient = require('mongodb').MongoClient

const {
  database,
  hostname,
  username,
  password,
} = auths.mongodb

const url = `mongodb+srv://${username}:${password}@${hostname}/test?retryWrites=true&w=majority`
const client = await MongoClient.connect(url, { 
  useNewUrlParser: true, 
  useUnifiedTopology: true 
})

const db = client.db(database)
// Enter your target collection as a parameter to this step
this.res = await db.collection(params.collection).insertOne({ name: "Luke Skywalker" })

await client.close()

Community Posts

A Look at Pipedream
A Look at Pipedream
I'm going to build a workflow that will search Twitter every hour for a keyword. It will take the results, format them nicely, and then email it.
Building a Traffic-Based Workflow in Pipedream
Building a Traffic-Based Workflow in Pipedream
Normally I don't like to blog about stuff that isn't generally available to all, but as it will be available sometime soon, I decided to go ahead anyway. And I built something really cool I want to share so that's another reason to talk about this now!