Reddit

Reddit is a network of communities based on people's interests. Find communities you're interested in, and become part of an online community!

Integrate the Reddit API with the Google Drive API

Setup the Reddit API trigger to run a workflow which integrates with the Google Drive API. Pipedream's integration platform allows you to integrate Reddit and Google Drive remarkably fast. Free for developers.

Add File Sharing Preference with Google Drive API on New comments by user from Reddit API
Reddit + Google Drive
 
Try it
Add File Sharing Preference with Google Drive API on New comments on a post from Reddit API
Reddit + Google Drive
 
Try it
Add File Sharing Preference with Google Drive API on New hot posts on a subreddit from Reddit API
Reddit + Google Drive
 
Try it
Add File Sharing Preference with Google Drive API on New links by user from Reddit API
Reddit + Google Drive
 
Try it
Add File Sharing Preference with Google Drive API on New Links on a subreddit from Reddit API
Reddit + Google Drive
 
Try it
Changes to Specific Files from the Google Drive API

Watches for changes to specific files, emitting an event any time a change is made to one of those files. To watch for changes to shared drive files, use the Changes to Specific Files (Shared Drive) source instead.

 
Try it
New Comments by User from the Reddit API

Emit new event each time a user posts a new comment.

 
Try it
Changes to Specific Files (Shared Drive) from the Google Drive API

Watches for changes to specific files in a shared drive, emitting an event any time a change is made to one of those files

 
Try it
New comments on a post from the Reddit API

Emit new event each time a new comment is added to a subreddit.

 
Try it
New hot posts on a subreddit from the Reddit API

Emit new event each time a new hot post is added to the top 10 items in a subreddit.

 
Try it
List Comments in a Post with the Reddit API

List comments for a specific post. See the docs here

 
Try it
Add File Sharing Preference with the Google Drive API

Add a sharing permission to the sharing preferences of a file or folder and provide a sharing URL. See the docs for more information

 
Try it
List Subreddits by Query with the Reddit API

List subreddits based on a search criteria. See the docs here

 
Try it
Copy File with the Google Drive API

Create a copy of the specified file. See the docs for more information

 
Try it
Create a New File with the Google Drive API

Create a new file from a URL or /tmp/filepath. See the docs for more information

 
Try it

Overview of Reddit

  1. You could build a tool that monitors specific subreddits and notifies you
    when new posts match certain criteria.
  2. You could build a tool that analyzes the posts and comments in a given
    subreddit to generate statistics or visualizations about the topic.
  3. You could build a bot that automatically posts or comments in response to
    certain keywords or phrases.
  4. You could build a tool that helps manage your Reddit account by automating
    tasks like posting, messaging, or voting.
  5. You could build a tool that extracts data from Reddit posts and comments for
    use in other applications.

Connect Reddit

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    reddit: {
      type: "app",
      app: "reddit",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://oauth.reddit.com/api/v1/me`,
      headers: {
        Authorization: `Bearer ${this.reddit.$auth.oauth_access_token}`,
      },
    })
  },
})

Overview of Google Drive

Using the Google Drive API, you can build applications that:

  • Create and manage files and folders
  • Download and upload files
  • Share and organize files
  • Search for files
  • Track changes to files
  • And much more!

Connect Google Drive

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    google_drive: {
      type: "app",
      app: "google_drive",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://www.googleapis.com/oauth2/v1/userinfo`,
      headers: {
        Authorization: `Bearer ${this.google_drive.$auth.oauth_access_token}`,
      },
    })
  },
})

Community Posts

Building a Reddit Workflow with Pipedream
Building a Reddit Workflow with Pipedream
Almost four years ago I blogged about a demo I built using Reddit's API. The demo was a multi-user application that made use of Mongo for persistence and Passport.js for user authentication. You would login, select subreddit's to subscribe to, and then once a day it would email you the new posts from that subreddit. This was built in a "traditional" Node.js style with a server running full time to process requests. I thought it would be fun to build this again (although slightly different) using Pipedream's support for working with the Reddit API. I built two different versions of a simple workflow I'd like to share below.
Updating my Reddit Workflow with Pipedream
Updating my Reddit Workflow with Pipedream
Back almost exactly a month ago, I blogged about using Pipedream to build a Reddit email report. The idea was that I wanted a daily email of posts from my subscribed subreddits for the past 24 hours of content. The implementation was a bit complex. I used one workflow to handle "get a days worth of content from subreddit" as a general "API" and another workflow connected to my authentication. It handles getting my subscriptions, hitting the API, and then generating the email. This worked well, but after a while of actually getting the email, I noticed some problems. So I decided to fix that.