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
}