Get Reddit Posts

Updated 2 months ago by Karan

Introduction

Byteline allows you to easily integrate Reddit API to pull data from any subreddit. In this document, you will observe how to get data from Reddit and use that on the other flow nodes.

Create Flow

For this document, we are assuming a flow is initiated with a Webhook trigger node. For more details, you can check the documentation on How to create your first flow design.

Select the Reddit node from the select node window.

SignIn to Reddit

Step -1: Click on the edit button of the Reddit node to start the configuration.

Step-2: Click on the sign-in to Reddit button to connect your Reddit account.

Step -3: Click on allow button to allow your Reddit to access the Byteline bot.

Add Subreddit

Step -1: Once you have established the Reddit connection, enter the Subreddit name in the Get Subreddit Posts window for which you want to get posts in the textbox.

Step -2: Click on the Save button to save the Reddit node configuration.

How Reddit Data is Structured

Let's see how Reddit data is structured.

Run the flow

Step -1: Click on the deploy button appearing on the top-right corner of the flow designer window to deploy the flow created.

Step -2: Click on the Test Run button on the top-right corner of the console to run the flow.

The flow shall be successfully deployed and executed.

Data

Let's compare the structure of data on the Reddit site and on the Select Variable Tool.

Structure of data on Reddit site.

Structure of data fetched by the select variable tool of Byteline.

The green indicator shows that the Reddit node has been configured.

Hence, you have successfully configured the Reddit node. Develop fast!


How did we do?