{ "opencollection": "1.0.0", "info": { "name": "Reddit Ads Account Flair API", "version": "3" }, "request": { "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://www.reddit.com/api/v1/authorize", "accessTokenUrl": "https://www.reddit.com/api/v1/access_token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "items": [ { "info": { "name": "Flair", "type": "folder" }, "items": [ { "info": { "name": "Set User Flair", "type": "http" }, "http": { "method": "POST", "url": "https://ads-api.reddit.com/api/v3/r/:subreddit/api/flair", "params": [ { "name": "subreddit", "value": "", "type": "path", "description": "The name of the subreddit." } ], "body": { "type": "form-urlencoded", "data": [ { "name": "name", "value": "" }, { "name": "text", "value": "" }, { "name": "css_class", "value": "" }, { "name": "api_type", "value": "" } ] } }, "docs": "Sets the flair for a user in the specified subreddit. Requires the modflair OAuth scope (or flair scope for self-flair)." }, { "info": { "name": "Get Available Flair Options", "type": "http" }, "http": { "method": "POST", "url": "https://ads-api.reddit.com/api/v3/r/:subreddit/api/flairselector", "params": [ { "name": "subreddit", "value": "", "type": "path", "description": "The name of the subreddit." } ], "body": { "type": "form-urlencoded", "data": [ { "name": "link", "value": "" }, { "name": "name", "value": "" } ] } }, "docs": "Returns available flair options for a user or link in the specified subreddit." } ] } ], "bundled": true }