ByteChef LogoByteChef
Components

Reddit

Reddit is a social news aggregation, discussion, and content-sharing platform where users post and vote on content organized into communities called subreddits.

Categories: Social Media

Type: reddit/v1


Connections

Version: 1

OAuth2 Authorization Code

Properties

NameLabelTypeDescriptionRequired
clientIdClient IdSTRINGtrue
clientSecretClient SecretSTRINGtrue

Actions

Create Comment

Name: createComment

Creates comment on a Reddit post or replies to a comment.

Properties

NameLabelTypeDescriptionRequired
thing_idParent IDSTRINGPost ID (t3_) or comment ID (t1_) to reply to.true
textComment TextSTRINGComment text.true

Example JSON Structure

{
  "label" : "Create Comment",
  "name" : "createComment",
  "parameters" : {
    "thing_id" : "",
    "text" : ""
  },
  "type" : "reddit/v1/createComment"
}

Output

Type: OBJECT

Properties

NameTypeDescription
jqueryARRAY
Items []
An array with response data.
successBOOLEAN
Options true, false
Boolean value that indicates the success or failure of the request.

Output Example

{
  "jquery" : [ ],
  "success" : false
}

Create Post

Name: createPost

Creates a new reddit post.

Properties

NameLabelTypeDescriptionRequired
srSubreddit NameSTRINGSubreddit name.true
titleTitleSTRINGPost title.true
kindKindSTRING
Options link, self
Type of post.true
urlURLSTRINGLink URL.true
textTextSTRINGPost text.true

Example JSON Structure

{
  "label" : "Create Post",
  "name" : "createPost",
  "parameters" : {
    "sr" : "",
    "title" : "",
    "kind" : "",
    "url" : "",
    "text" : ""
  },
  "type" : "reddit/v1/createPost"
}

Output

Type: OBJECT

Properties

NameTypeDescription
jqueryARRAY
Items []
An array with response data.
successBOOLEAN
Options true, false
Boolean value that indicates the success or failure of the request.

Output Example

{
  "jquery" : [ ],
  "success" : false
}

What to do if your action is not listed here?

If this component doesn't have the action you need, you can use Custom Action to create your own. Custom Actions empower you to define HTTP requests tailored to your specific requirements, allowing for greater flexibility in integrating with external services or APIs.

To create a Custom Action, simply specify the desired HTTP method, path, and any necessary parameters. This way, you can extend the functionality of your component beyond the predefined actions, ensuring that you can meet all your integration needs effectively.