Connect to Reddit to read and submit posts and comments.
认证方式
| 方式 | 底层类型 | 状态 | 说明 |
|---|---|---|---|
| OAuth 2.0 | oauth2 | available | — |
调用示例
import { createClient } from "@open-connector/sdk";const oc = createClient({ baseUrl: "https://api.openconnector.dev", apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await oc.executeTool({ slug: "REDDIT_COMMENT_CREATE", connectedAccountId: "conn_...", arguments: { /* match this tool's input schema */ },});import Composio from "@composio/client";const composio = new Composio({ baseURL: "https://api.openconnector.dev/composio", apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await composio.tools.execute("REDDIT_COMMENT_CREATE", { connected_account_id: "conn_...", arguments: { /* match this tool's input schema */ },});oc tools execute REDDIT_COMMENT_CREATE --data '{ }'Tool 目录
可用 Tools
30 个可调用操作
Create a Reddit commentREDDIT_COMMENT_CREATECreates a comment reply to a post or another comment.需要连接1 scope
Creates a comment reply to a post or another comment.
认证
需要 Connected AccountScopes
submitTags
List post commentsREDDIT_COMMENTS_LISTReturns a post and its comment tree for a subreddit article.需要连接1 scope
Returns a post and its comment tree for a subreddit article.
认证
需要 Connected AccountScopes
readTags
Get current Reddit userREDDIT_CURRENT_USER_GETReturns profile information for the authenticated Reddit account.需要连接1 scope
Returns profile information for the authenticated Reddit account.
认证
需要 Connected AccountScopes
identityTags
Get current user karma by subredditREDDIT_CURRENT_USER_KARMA_GETReturns karma breakdowns for the authenticated user by subreddit.需要连接1 scope
Returns karma breakdowns for the authenticated user by subreddit.
认证
需要 Connected AccountScopes
identityTags
Compose Reddit private messageREDDIT_MESSAGE_COMPOSESends a private message to a Reddit user or subreddit moderators.需要连接1 scope
Sends a private message to a Reddit user or subreddit moderators.
认证
需要 Connected AccountScopes
privatemessagesTags
Delete Reddit messageREDDIT_MESSAGE_DELETEDeletes a private message from the authenticated user's mailbox.需要连接1 scope
Deletes a private message from the authenticated user's mailbox.
认证
需要 Connected AccountScopes
privatemessagesTags
Mark Reddit message readREDDIT_MESSAGE_READMarks a private message as read.需要连接1 scope
Marks a private message as read.
认证
需要 Connected AccountScopes
privatemessagesTags
List Reddit messagesREDDIT_MESSAGES_LISTLists private message inbox, unread, sent, or related message views.需要连接1 scope
Lists private message inbox, unread, sent, or related message views.
认证
需要 Connected AccountScopes
privatemessagesTags
Get additional commentsREDDIT_MORE_COMMENTS_GETExpands a comment tree by fetching children referenced by more comments placeholders.需要连接1 scope
Expands a comment tree by fetching children referenced by more comments placeholders.
认证
需要 Connected AccountScopes
readTags
Submit a Reddit postREDDIT_POST_SUBMITCreates a link, self, image, or video post in a subreddit.需要连接1 scope
Creates a link, self, image, or video post in a subreddit.
认证
需要 Connected AccountScopes
submitTags
Search RedditREDDIT_SEARCHSearches posts and other Reddit content globally or within a subreddit.需要连接1 scope
Searches posts and other Reddit content globally or within a subreddit.
认证
需要 Connected AccountScopes
readTags
Set send replies preferenceREDDIT_SEND_REPLIES_SETEnables or disables inbox replies for a post or comment.需要连接1 scope
Enables or disables inbox replies for a post or comment.
认证
需要 Connected AccountScopes
editTags
Get subreddit informationREDDIT_SUBREDDIT_ABOUT_GETReturns metadata and public information about a subreddit.需要连接1 scope
Returns metadata and public information about a subreddit.
认证
需要 Connected AccountScopes
readTags
List subreddit postsREDDIT_SUBREDDIT_POSTS_LISTLists posts from a subreddit using a supported sort such as hot, new, top, or rising.需要连接1 scope
Lists posts from a subreddit using a supported sort such as hot, new, top, or rising.
认证
需要 Connected AccountScopes
readTags
List subreddit rulesREDDIT_SUBREDDIT_RULES_LISTReturns subreddit rules configured by moderators.需要连接1 scope
Returns subreddit rules configured by moderators.
认证
需要 Connected AccountScopes
readTags
List my subredditsREDDIT_SUBREDDITS_MINE_LISTLists subreddits related to the authenticated user, such as subscribed or moderated subreddits.需要连接1 scope
Lists subreddits related to the authenticated user, such as subscribed or moderated subreddits.
认证
需要 Connected AccountScopes
mysubredditsTags
Search subredditsREDDIT_SUBREDDITS_SEARCHSearches for subreddits matching a query string.需要连接1 scope
Searches for subreddits matching a query string.
认证
需要 Connected AccountScopes
readTags
Delete Reddit thingREDDIT_THING_DELETEDeletes a post or comment owned by the authenticated user.需要连接1 scope
Deletes a post or comment owned by the authenticated user.
认证
需要 Connected AccountScopes
editTags
Edit Reddit thing textREDDIT_THING_EDITEdits the text body of a post or comment owned by the authenticated user.需要连接1 scope
Edits the text body of a post or comment owned by the authenticated user.
认证
需要 Connected AccountScopes
editTags
Get Reddit things by fullnameREDDIT_THING_GETFetches one or more Reddit things by fullname identifiers, such as t3_ or t1_ IDs.需要连接1 scope
Fetches one or more Reddit things by fullname identifiers, such as t3_ or t1_ IDs.
认证
需要 Connected AccountScopes
readTags
Hide Reddit thingREDDIT_THING_HIDEHides one or more posts from listings for the authenticated user.需要连接1 scope
Hides one or more posts from listings for the authenticated user.
认证
需要 Connected AccountScopes
readTags
Report Reddit thingREDDIT_THING_REPORTReports a post or comment to Reddit or subreddit moderators.需要连接1 scope
Reports a post or comment to Reddit or subreddit moderators.
认证
需要 Connected AccountScopes
reportTags
Save Reddit thingREDDIT_THING_SAVESaves a post or comment for the authenticated user.需要连接1 scope
Saves a post or comment for the authenticated user.
认证
需要 Connected AccountScopes
saveTags
Unhide Reddit thingREDDIT_THING_UNHIDEUnhides one or more posts for the authenticated user.需要连接1 scope
Unhides one or more posts for the authenticated user.
认证
需要 Connected AccountScopes
readTags
Unsave Reddit thingREDDIT_THING_UNSAVERemoves a post or comment from the authenticated user's saved items.需要连接1 scope
Removes a post or comment from the authenticated user's saved items.
认证
需要 Connected AccountScopes
saveTags
Vote on Reddit thingREDDIT_THING_VOTEApplies an upvote, downvote, or vote removal to a post or comment.需要连接1 scope
Applies an upvote, downvote, or vote removal to a post or comment.
认证
需要 Connected AccountScopes
voteTags
Get Reddit user informationREDDIT_USER_ABOUT_GETReturns public profile metadata for a Reddit user.需要连接1 scope
Returns public profile metadata for a Reddit user.
认证
需要 Connected AccountScopes
readTags
List user commentsREDDIT_USER_COMMENTS_LISTLists comments created by a Reddit user.需要连接1 scope
Lists comments created by a Reddit user.
认证
需要 Connected AccountScopes
historyTags
List user saved itemsREDDIT_USER_SAVED_LISTLists saved items for a Reddit user when authorized to access them.需要连接1 scope
Lists saved items for a Reddit user when authorized to access them.
认证
需要 Connected AccountScopes
historyTags
List user submitted postsREDDIT_USER_SUBMITTED_LISTLists posts submitted by a Reddit user.需要连接1 scope
Lists posts submitted by a Reddit user.
认证
需要 Connected AccountScopes
historyTags